Skip to content
Snippets Groups Projects
Commit a35de714 authored by Martin Nolte's avatar Martin Nolte
Browse files

only use std::integral_constant, if it conforms to the C++11 standard

C++11 requires a cast operator from integral_constant< T, v > to T. As far as I
could make out, no gcc version provides this cast in <tr1/type_traits> and only
gcc >= 4.6 provides it in <type_traits>. Therefore, the configure check now tests
for the cast operator only in <type_traits>.

Note: Our drop-in replacement conforms to the standard in the above-mentioned
sense.

[[Imported from SVN: r6992]]
parent 54e77c9f
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment