Most voted "c++17" questions
11 questions
Sort by count of
-
3
votes1
answer46
viewsAre there problems in declaring many noexcept functions?
I see a lot of code in C++14/C++17 where the programmer is sure that the function will make an exception, but does not report this pro compiler, perhaps because it may cause some problem when…
-
2
votes1
answer73
views -
2
votes1
answer75
views -
0
votes1
answer42
viewsHow much can the access cost of an unodered_map hinder the performance of a game?
The cost of access to unordered_map can cause FPS to drop in a game if it is accessed thousands of times per second? class var { public: template < typename t = double > static inline auto…
-
0
votes1
answer47
viewsHow do I place strings like 'char32_t' and 'char16_t' on the console in C++?
New C++17 added characters char32_t and char16_t, added also 'u16string' and 'u32string', but did not create any way to put them on the console screen. For example: int main() { std::u16string u16s{…
-
0
votes1
answer68
viewsHow to use a template as a type in a map?
Is there any way to use template as type in a map in C++17? template<typename T> std::map<std::string, T/* tipo desconhecido, pode ser qualquer tipo */> map_exemplo;…
-
0
votes1
answer193
viewsC++ Compiling/Including all files . cpp from the subdirectories of the /src folder
I use Visual Studio Code + Mingw. My project is the https://github.com/KaueAlves/Grimorie-Tabuleiro As some IDES link between classes automatically, when using VSCODE I came across the need to pass…
-
0
votes0
answers248
viewsProblem with system usage("cls")
This program is just to study nothing too serious. I tried to use two means to do the screen cleaning, but from case 4 to work if I put the system ("cls") or the function void clean(), when removed…
c++17asked 5 years, 8 months ago Gustavo Daniel 11 -
0
votes0
answers38
viewsCompare map<string,any> c++ 17
I can’t compare two maps . Ex: map<string, any> columnsMap = { {"status", 1}, {"client_delivered", 0}, {"client_notification", 0}}; map<string, any> columnsMap2 = { {"status", 1},…
-
-1
votes1
answer28
viewsFunction return -0
I created a polynomial class, among the member functions present in my class is the root resolution function. If the degree of the polynomial is 2, I use baskhara for resolution. But I realized that…
-
-1
votes2
answers58
viewsHow to return different structures in a function with a value defined in Runtime?
Hello, I am working on a project for Windows that has a structure (of Windows itself) that changes according to the architecture of the system (x86/x64), how to return the correct structure for a…