Click here to Skip to main content
15,885,876 members

Comments by steveb (Top 29 by date)

steveb 21-Sep-23 20:02pm View    
Did you rebuilt the executable?
steveb 12-Oct-22 11:25am View    
Deleted
You can also use the std::any as a parameter (probably c++20 also but boost library have it) and declare it as void printValues(std::any val1, std::any val2);
But I think the resulting exe image will be slightly bigger than with auto keyword
steveb 12-Oct-22 9:49am View    
There also new type std::any (from boost now made it into the STL). It is also feasible to declare that function as void printValues(std::any val1, std::any val2). But I think the resulting assembly will be much bigger if you care about the exe size
steveb 11-Oct-22 8:52am View    
Ooops. I think I built that in VS 2022 with the C++20 standard enabled. The coolest feature ever I must admit
steveb 9-Oct-22 13:57pm View    
auto specifier is c++11 standard.