Add the <type_traits> header to the compiler test file.

This commit is contained in:
Peter Powell 2015-02-18 15:20:58 +00:00
parent 4e9af81504
commit 100048eb41
2 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,7 @@ sub __get_template_settings($$$) {
sub __test_compiler($) {
my $compiler = shift;
return 0 unless run_test("`$compiler`", !system "$compiler -v >/dev/null 2>&1");
return 0 unless run_test("`$compiler`", test_file($compiler, 'compiler.cpp'), 'compatible');
return 0 unless run_test("`$compiler`", test_file($compiler, 'compiler.cpp', '-fno-rtti'), 'compatible');
return 1;
}

View File

@ -18,8 +18,10 @@
#include <iostream>
#if defined _LIBCPP_VERSION
# include <type_traits>
# include <unordered_map>
#else
# include <tr1/type_traits>
# include <tr1/unordered_map>
#endif