Abbreviated functions
venediktov opened this issue · comments
Vladimir Venediktov commented
http://stackoverflow.com/questions/27819004/what-is-the-status-of-abbreviated-functions-in-c
We should use -Wpedantic-errors or -Wpedantic flag like jsonv , this way it guarantees we only use standard features of C++14.
looks like "abreviated functions" are not standard yet, I think we have to support standard .
template function( T && t)
vs.
function( auto && t)
if(WIN32)
else(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic-errors -Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_DEBUG} -ggdb")
endif(WIN32)