From b44cacfd2c3ef9aab6abfc32e9d820b9de3d8d79 Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Wed, 29 Apr 2015 17:43:19 -0700 Subject: [PATCH] struct/class consistency Summary: This diff is based on https://github.com/facebook/folly/pull/95 by gitbug user mikekap. It changes the struct/class naming of forward declarations to match their definitions. Test Plan: fbconfig -r folly && fbmake runtests Reviewed By: markisaa@fb.com Subscribers: fugalh, folly-diffs@, jsedgwick, yfeldblum, chalfant FB internal diff: D2032995 Tasks: 6783581 Signature: t1:2032995:1430339337:79193fd8409b73e8a9155133f326b7cee534244d --- folly/MPMCQueue.h | 2 +- folly/wangle/rx/Observer.h | 2 +- folly/wangle/rx/types.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/folly/MPMCQueue.h b/folly/MPMCQueue.h index 45c4ef74..ede1716d 100644 --- a/folly/MPMCQueue.h +++ b/folly/MPMCQueue.h @@ -34,7 +34,7 @@ namespace folly { namespace detail { template class Atom> -class SingleElementQueue; +struct SingleElementQueue; template class MPMCPipelineStageImpl; diff --git a/folly/wangle/rx/Observer.h b/folly/wangle/rx/Observer.h index e82d4e6f..5797a0c1 100644 --- a/folly/wangle/rx/Observer.h +++ b/folly/wangle/rx/Observer.h @@ -24,7 +24,7 @@ namespace folly { namespace wangle { -template class FunctionObserver; +template struct FunctionObserver; /// Observer interface. You can subclass it, or you can just use create() /// to use std::functions. diff --git a/folly/wangle/rx/types.h b/folly/wangle/rx/types.h index 5bfa293f..3bb540e6 100644 --- a/folly/wangle/rx/types.h +++ b/folly/wangle/rx/types.h @@ -25,7 +25,7 @@ namespace folly { namespace wangle { // alias it. typedef std::shared_ptr SchedulerPtr; - template struct Observable; + template class Observable; template struct Observer; template struct Subject; -- 2.34.1