Open alandefreitas opened 1 month ago
There should be a Mr. Docs-supported solution for giving user usage examples of SFINAE for traits without having to write them out entirely every time. For instance,
template< class CharSet > typename std::enable_if< is_charset<T>::value >::type func( CharSet const& cs );
template< class CharSet, typename = std::enable_if< is_charset<T>::value >::type > void func( CharSet const& cs );
template< class CharSet > void func( CharSet const& cs, typename std::enable_if<is_charset<T>::value>::type* = 0 );
There should be a Mr. Docs-supported solution for giving user usage examples of SFINAE for traits without having to write them out entirely every time. For instance,