Commit 2195ec35 authored by Bennett Magy's avatar Bennett Magy Committed by Facebook Github Bot

Added forward declaration of ObserverCreator

Summary:
For some reason, compilation of certain Observable code fails in opt mode with the error that Observer::core_ is private.

It seems that ObserverCreator is not recognized as a friend of Observer. This forward declaration of ObserverCreator seems to fix this issue.

Reviewed By: yfeldblum

Differential Revision: D7268318

fbshipit-source-id: 1ea76efb0f50cb8a6b28147305ec7547f55338b8
parent aab80ef3
...@@ -140,6 +140,9 @@ class CallbackHandle { ...@@ -140,6 +140,9 @@ class CallbackHandle {
std::shared_ptr<Context> context_; std::shared_ptr<Context> context_;
}; };
template <typename Observable, typename Traits>
class ObserverCreator;
template <typename T> template <typename T>
class Observer { class Observer {
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment