【发布时间】:2015-05-27 11:28:03
【问题描述】:
In file included from ./../folly/FBString.h:59:0,
from ./../folly/Conv.h:27,
from detail/CacheLocality.cpp:23:
./../folly/Traits.h:155:38: error: template argument 1 is invalid
struct IsRelocatable< __VA_ARGS__ > : std::true_type {};
^
./../folly/Traits.h:221:3: note: in expansion of macro 'FOLLY_ASSUME_RELOCATABLE'
FOLLY_ASSUME_RELOCATABLE(__VA_ARGS__<T1, T2, T3>) } \
^
./../folly/Traits.h:427:1: note: in expansion of macro 'FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3'
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string);
^
./../folly/Traits.h:171:48: error: template argument 1 is invalid
struct has_nothrow_constructor< __VA_ARGS__ > : ::boost::true_type {};
^
./../folly/Traits.h:224:5: note: in expansion of macro 'FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR'
FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR(__VA_ARGS__<T1, T2, T3>) }
^
./../folly/Traits.h:427:1: note: in expansion of macro 'FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3'
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string);
^
./../folly/Traits.h:155:38: error: template argument 1 is invalid
struct IsRelocatable< __VA_ARGS__ > : std::true_type {};
^
./../folly/Traits.h:213:3: note: in expansion of macro 'FOLLY_ASSUME_RELOCATABLE'
FOLLY_ASSUME_RELOCATABLE(__VA_ARGS__<T1, T2>) } \
^
./../folly/Traits.h:429:1: note: in expansion of macro 'FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2'
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::list);
^
./../folly/Traits.h:171:48: error: template argument 1 is invalid
struct has_nothrow_constructor< __VA_ARGS__ > : ::boost::true_type {};
^
./../folly/Traits.h:216:5: note: in expansion of macro 'FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR'
FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR(__VA_ARGS__<T1, T2>) }
^
./../folly/Traits.h:429:1: note: in expansion of macro 'FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2'
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::list);
^
Makefile:1395: recipe for target 'detail/CacheLocality.lo' failed
对我来说这看起来不错,但编译器会抱怨。
【问题讨论】:
-
让我闯入你的系统,输入
./../folly并检查代码。 -
看起来不错的“这个”是什么?您的“问题”中的所有内容都是错误消息的转储。如果看起来不错,那么请保持原样,您将继续收到这些错误。
-
添加了详细信息作为答案.....