August 2017
Intermediate to advanced
438 pages
14h 19m
English
Another version of this method is called boost::enable_if without _c at the end. The difference between them is that enable_if_c accepts constant as a template parameter; the short version accepts an object that has a value static member. For example, boost::enable_if_c<boost::is_integral<T>::value >::type is equal to boost::enable_if<boost::is_integral<T> >::type.
C++11 has std::enable_if defined in the <type_traits> header, which behaves exactly like boost::enable_if_c. No difference between them exists, except that Boost's version works on non C++11 compilers too, providing ...
Read now
Unlock full access