”@

Home 

c++ Programming Glossary: detail_overload

SFINAE: checking the existence of a function breaks when the overload is moved to other namespaces

http://stackoverflow.com/questions/18933857/sfinae-checking-the-existence-of-a-function-breaks-when-the-overload-is-moved-t

namespace foo #if ENABLE_FOO_BAR int bar #endif namespace detail_overload template typename... Args void bar Args ... namespace detail.. Args void bar Args ... namespace detail using namespace detail_overload using namespace foo template typename T decltype bar test T.. I wouldn't be using SFINAE However as soon as I put detail_overload bar in any other namespace adjusting the using directive as..