Is the “lazy man's enable_if” legal C++?

后端 未结 2 438
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 07:34

I frequently use a technique I call the \"lazy man\'s enable_if,\" where I use decltype and the comma operator to enable a function based on some templ

2条回答
  •  被撕碎了的回忆
    2021-01-31 08:12

    This is a feature called "Expression SFINAE." It is not yet fully supported by Visual C++ (see "C++11/14/17 Features In VS 2015 Preview" for the latest conformance update as of the time of this answer).

提交回复
热议问题