¡@

Home 

c++ Programming Glossary: tfunc

C++11 constexpr function's argument passed in template argument

http://stackoverflow.com/questions/9045635/c11-constexpr-functions-argument-passed-in-template-argument

This used to work some weeks ago template typename T T t T tfunc return t 10 template typename T constexpr T func T t return.. t 10 template typename T constexpr T func T t return tfunc T t int main std cout func 10 std endl return 0 But now g std.. candidate is main.cpp 16 14 note template class T T t T tfunc main.cpp 25 1 warning control reaches end of non void function..