Nagarei / DxLibEx

DXライブラリC++化プロジェクト
Boost Software License 1.0
31 stars 3 forks source link

add constant range(compile error) #59

Closed yumetodo closed 8 years ago

yumetodo commented 8 years ago

58

yumetodo commented 8 years ago

だめだ、コンパイルエラーが意味がわからない。

1>------ ビルド開始: プロジェクト:constant_range, 構成:clang_Debug Win32 ------
1>  main.cpp
1>  In file included from main.cpp:1:
1>  In file included from ../../..\dxlibex/utility.hpp:11:
1>../../..\dxlibex/utility/constant_range_loop.hpp(86,36): error : no template named 'is_arithmetic' in namespace 'dxle::utility::std'; did you mean '::std::is_arithmetic'?
1>                  template<typename T, enable_if_t<std::is_arithmetic<T>::value, nullptr_t> = nullptr>
1>                                                   ^~~~~~~~~~~~~~~~~~
1>                                                   ::std::is_arithmetic
1>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtr1common(287,9) :  note: '::std::is_arithmetic' declared here
1>          struct is_arithmetic
1>                 ^
1>  In file included from main.cpp:1:
1>  In file included from ../../..\dxlibex/utility.hpp:11:
1>../../..\dxlibex/utility/constant_range_loop.hpp(89,23): error : no template named 'remove_cv_t' in namespace 'dxle::utility::std'; did you mean '::std::remove_cv_t'?
1>                          using value_type = std::remove_cv_t<T>;
1>                                             ^~~~~~~~~~~~~~~~
1>                                             ::std::remove_cv_t
1>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits(1710,2) :  note: '::std::remove_cv_t' declared here
1>          using remove_cv_t = typename remove_cv<_Ty>::type;
1>          ^
1>  In file included from main.cpp:1:
1>  In file included from ../../..\dxlibex/utility.hpp:11:
1>../../..\dxlibex/utility/constant_range_loop.hpp(104,36): error : no template named 'is_arithmetic' in namespace 'dxle::utility::std'; did you mean '::std::is_arithmetic'?
1>                  template<typename T, enable_if_t<std::is_arithmetic<T>::value, nullptr_t> = nullptr>
1>                                                   ^~~~~~~~~~~~~~~~~~
1>                                                   ::std::is_arithmetic
1>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtr1common(287,9) :  note: '::std::is_arithmetic' declared here
1>          struct is_arithmetic
1>                 ^
1>  In file included from main.cpp:1:
1>  In file included from ../../..\dxlibex/utility.hpp:11:
1>../../..\dxlibex/utility/constant_range_loop.hpp(108,36): error : no template named 'is_arithmetic' in namespace 'dxle::utility::std'; did you mean '::std::is_arithmetic'?
1>                  template<typename T, enable_if_t<std::is_arithmetic<T>::value, nullptr_t> = nullptr>
1>                                                   ^~~~~~~~~~~~~~~~~~
1>                                                   ::std::is_arithmetic
1>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtr1common(287,9) :  note: '::std::is_arithmetic' declared here
1>          struct is_arithmetic
1>                 ^
1>  4 errors generated.
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========

なんでこのヘッダーだけ出るんだ。