~smspillaz/folly/folly-git-master

« back to all changes in this revision

Viewing changes to folly/detail/UniqueInstance.h

  • Committer: Facebook GitHub Bot
  • Author(s): Pranjal Raihan
  • Date: 2021-07-13 09:47:11 UTC
  • Revision ID: git-v1:7a18d1823185495cae6676258ee64afd7e36c84c
Back out "Don't use typeid without RTTI in UniqueInstance"

Reviewed By: prajay

Differential Revision: D29673416

fbshipit-source-id: f08fa89db74198aa648e871837f1f7b841cd8d6b

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <typeinfo>
21
21
 
22
22
#include <folly/CppAttributes.h>
23
 
#include <folly/Portability.h>
24
23
#include <folly/detail/StaticSingletonManager.h>
25
24
 
26
25
namespace folly {
28
27
 
29
28
class UniqueInstance {
30
29
 public:
31
 
#if !FOLLY_HAS_RTTI || (__GNUC__ && __GNUC__ < 7 && !__clang__)
 
30
#if __GNUC__ && __GNUC__ < 7 && !__clang__
32
31
  explicit UniqueInstance(...) noexcept {}
33
32
#else
34
33
  template <template <typename...> class Z, typename... Key, typename... Mapped>