aboutsummaryrefslogtreecommitdiff
path: root/src/base/test/type_traits_test.cpp
diff options
context:
space:
mode:
authorGravatar Erwin Jansen <jansene@google.com>2018-11-21 16:09:40 -0800
committerGravatar Erwin Jansen <jansene@google.com>2018-11-27 10:24:19 -0800
commitbaf0508027872f50198e838fe1148b73a9b11b1f (patch)
treec1c350b5ec2b39c1c036e576968a003c84056028 /src/base/test/type_traits_test.cpp
parent16661ba8c0103c2571e84a59a107c9e41dbe60dc (diff)
CMake support to enable compilation under Visual Studio
- Add support for cmake - Template fix to enable compilation with visual studio. - Exclusion of static type tests under visual studio - Fix unit tests due to declaration issues Note we do not build the fuzzing target. Test: All unit tests green on VS2017, MacOs, Linux Change-Id: Ie8437f61d187fff03279c99fde0ff565e8f39b50
Diffstat (limited to 'src/base/test/type_traits_test.cpp')
-rw-r--r--src/base/test/type_traits_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/test/type_traits_test.cpp b/src/base/test/type_traits_test.cpp
index b858c01..c724cbe 100644
--- a/src/base/test/type_traits_test.cpp
+++ b/src/base/test/type_traits_test.cpp
@@ -105,6 +105,7 @@ TEST(TypeTraits, IsTemplateInstantiation) {
"nested std::vector<> is an instance of vector");
}
+#ifndef _MSC_VER
TEST(TypeTraits, IsRange) {
static_assert(is_range<std::vector<int>>::value,
"vector<> should be detected as a range");
@@ -123,6 +124,7 @@ TEST(TypeTraits, IsRange) {
static_assert(!is_range<const int*>::value,
"even const int* shouldn't be a range");
}
+#endif
} // namespace base
} // namespace astc_codec