Disable type_traits
This commit is contained in:
parent
2f5a69b2fb
commit
d8c793f23f
@ -334,6 +334,8 @@ TEST(Document, UTF16_Document) {
|
|||||||
|
|
||||||
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
||||||
|
|
||||||
|
#if 0 // Many old compiler does not support these. Turn it off temporaily.
|
||||||
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
TEST(Document, Traits) {
|
TEST(Document, Traits) {
|
||||||
@ -371,6 +373,8 @@ TEST(Document, Traits) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename Allocator>
|
template <typename Allocator>
|
||||||
struct DocumentMove: public ::testing::Test {
|
struct DocumentMove: public ::testing::Test {
|
||||||
};
|
};
|
||||||
|
@ -74,6 +74,8 @@ TEST(StringBuffer, Pop) {
|
|||||||
|
|
||||||
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
||||||
|
|
||||||
|
#if 0 // Many old compiler does not support these. Turn it off temporaily.
|
||||||
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
TEST(StringBuffer, Traits) {
|
TEST(StringBuffer, Traits) {
|
||||||
@ -111,6 +113,8 @@ TEST(StringBuffer, Traits) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(StringBuffer, MoveConstructor) {
|
TEST(StringBuffer, MoveConstructor) {
|
||||||
StringBuffer x;
|
StringBuffer x;
|
||||||
x.Put('A');
|
x.Put('A');
|
||||||
|
@ -39,6 +39,8 @@ TEST(Value, DefaultConstructor) {
|
|||||||
|
|
||||||
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
||||||
|
|
||||||
|
#if 0 // Many old compiler does not support these. Turn it off temporaily.
|
||||||
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
TEST(Value, Traits) {
|
TEST(Value, Traits) {
|
||||||
@ -77,6 +79,8 @@ TEST(Value, Traits) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(Value, MoveConstructor) {
|
TEST(Value, MoveConstructor) {
|
||||||
typedef GenericValue<UTF8<>, CrtAllocator> Value;
|
typedef GenericValue<UTF8<>, CrtAllocator> Value;
|
||||||
Value::AllocatorType allocator;
|
Value::AllocatorType allocator;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user