Summary:
clang complains that the explicit specializations in dynamic.cpp
come after references in dynamic-inl.h.
Test Plan:
- built dyamic.o with clang
- built folly normally and ran unittests
Reviewed By: delong.j@fb.com
FB internal diff:
D691081
/*
- * Copyright 2012 Facebook, Inc.
+ * Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
static Type const type;
};
+#define FB_DEC_TYPE(T) \
+ template<> char const dynamic::TypeInfo<T>::name[]; \
+ template<> dynamic::Type const dynamic::TypeInfo<T>::type
+
+FB_DEC_TYPE(void*);
+FB_DEC_TYPE(bool);
+FB_DEC_TYPE(fbstring);
+FB_DEC_TYPE(dynamic::Array);
+FB_DEC_TYPE(double);
+FB_DEC_TYPE(int64_t);
+FB_DEC_TYPE(dynamic::ObjectImpl);
+
+#undef FB_DEC_TYPE
+
template<class T>
T dynamic::asImpl() const {
switch (type()) {