From baf0508027872f50198e838fe1148b73a9b11b1f Mon Sep 17 00:00:00 2001 From: Erwin Jansen Date: Wed, 21 Nov 2018 16:09:40 -0800 Subject: 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 --- src/base/test/type_traits_test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/base/test/type_traits_test.cpp') 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>::value, "vector<> should be detected as a range"); @@ -123,6 +124,7 @@ TEST(TypeTraits, IsRange) { static_assert(!is_range::value, "even const int* shouldn't be a range"); } +#endif } // namespace base } // namespace astc_codec -- cgit v1.2.3