C++ guides
Modern C++ guides: C++20 and C++23 features, compilers, build systems, and measured performance.
-
'make_heap' Is Not a Member of 'std' Fix Error Reference
A program that uses std::make_heap fails with ''make_heap' is not a member of 'std'' when the #include
line... -
'std::lower_bound' Is Not a Member of 'std' Fix Error Reference
A program that uses std::lower_bound fails with ''lower_bound' is not a member of 'std'' when the #include
... -
'std::equal_range' Is Not a Member of 'std' Fix Error Reference
A program that uses std::equal_range fails with ''equal_range' is not a member of 'std'' when the #include
... -
'std::clamp' Is Not a Member of 'std' Fix Error Reference
A program that uses std::clamp fails with ''clamp' is not a member of 'std'' when the #include
line is... -
'std::binary_search' Is Not a Member of 'std' Fix Error Reference
A program that uses std::binary_search fails with ''binary_search' is not a member of 'std'' when the #include...
-
'std::transform' Is Not a Member of 'std' Fix Error Reference
A program that uses std::transform fails with ''transform' is not a member of 'std'' when the #include
line... -
'std::reverse' Is Not a Member of 'std' Fix Error Reference
A program that uses std::reverse fails with ''reverse' is not a member of 'std'' when the #include
line is... -
'std::move' Is Not a Member of 'std' Fix Error Reference
A program that uses std::move fails with ''move' is not a member of 'std'' when no header that declares it is in the file, and...
-
'std::min' Is Not a Member of 'std' Fix Error Reference
A program that uses std::min fails with ''min' is not a member of 'std'' when the #include
line is missing... -
'std::max' Is Not a Member of 'std' Fix Error Reference
A program that uses std::max fails with ''max' is not a member of 'std'' when the #include
line is missing... -
'std::iota' Is Not a Member of 'std' Fix Error Reference
A program that uses std::iota fails with ''iota' is not a member of 'std'' when the #include
line is missing.... -
'std::future' Is Not a Member of 'std' Fix Error Reference
A program that uses std::future fails with ''future' is not a member of 'std'' when the #include
line is missing... -
'std::find' Is Not a Member of 'std' Fix Error Reference
A program that uses std::find fails with ''find' is not a member of 'std'' when the #include
line is... -
'std::fill' Is Not a Member of 'std' Fix Error Reference
A program that uses std::fill fails with ''fill' is not a member of 'std'' when the #include
line is missing... -
'std::count' Is Not a Member of 'std' Fix Error Reference
A program that uses std::count fails with ''count' is not a member of 'std'' when the #include
line is... -
'std::atomic' Is Not a Member of 'std' Fix Error Reference
A program that uses std::atomic fails with ''atomic' is not a member of 'std'' when the #include
line is missing... -
'std::unordered_map' Is Not a Member of 'std' Fix Error Reference
The error on a std::unordered_map name is, in GCC's actual wording inside a function, 'unordered_map' is not a member of 'std'...
-
'std::tuple' Is Not a Member of 'std' Fix Error Reference
The error on a std::tuple name is, in GCC's actual wording inside a function, 'tuple' is not a member of 'std' - with a note...
-
'std::string_view' Is Not a Member of 'std' Fix Error Reference
The error on a std::string_view name is, in GCC's actual wording inside a function, 'string_view' is not a member of 'std' - and at...
-
'std::stack' Is Not a Member of 'std' Fix Error Reference
The error on a std::stack name is, in GCC's actual wording inside a function, 'stack' is not a member of 'std' - with a note...
-
'std::regex' Is Not a Member of 'std' Fix Error Reference
The error on a std::regex name is, in GCC's actual wording inside a function, 'regex' is not a member of 'std' - and at namespace...
-
'std::priority_queue' Is Not a Member of 'std' Fix Error Reference
The error on a std::priority_queue name is, in GCC's actual wording inside a function, 'priority_queue' is not a member of 'std'...
-
'std::pair' Is Not a Member of 'std' Fix Error Reference
A C++ program that uses std::pair in a translation unit whose headers declare the std namespace without declaring pair fails with ''pair' is...
-
'std::list' Is Not a Member of 'std' Fix Error Reference
The error on a std::list name is, in GCC's actual wording inside a function, 'list' is not a member of 'std' - with a note attached...
-
'std::filesystem' Is Not a Member of 'std' Fix Error Reference
The error on a std::filesystem name - GCC wording inside a function is 'std::filesystem' has not been declared, and at namespace scope...
-
'std::chrono' Is Not a Member of 'std' Fix Error Reference
The error on a std::chrono name - GCC wording is 'std::chrono' has not been declared - fires in two shapes: the
header is missing... -
'std::bitset' Is Not a Member of 'std' Fix Error Reference
The error on a std::bitset name is, in GCC's actual wording inside a function, 'bitset' is not a member of 'std' - with a note...
-
'std::ranges::sort' Is Not a Member Fix Error Reference
A C++20 program that calls std::ranges::sort fails with ''sort' is not a member of 'std::ranges'' when the header that declares...
-
Void Value Not Ignored Fix Error Reference
GCC reports 'void value not ignored as it ought to be' when code stores the result of a function that returns nothing. This guide reads the...
-
Terminate Called After Throwing Fix Error Reference
A C++ program prints 'terminate called after throwing an instance of ...' and aborts when an exception reaches a place no handler can catch it: out...