by JUANDENT
cannot instantiate a string literal
|
|
[13 replies] Last: To allow std::make_unique and similar functions to initialize aggreg... (by Peter87)
|
by JUANDENT
How to define a concept that checks for the size of a parameter pack?
|
|
[2 replies] Last: This seems to work: template<typename...T> concept NonEmpty = sizeof.... (by Peter87)
|
by JUANDENT
How to include library feature macros like __cpp_lib_* if importing std only?
|
|
[4 replies] Last: Even though <version> was added to C++20 it isn't automatically adde... (by deleted account xyzzy)
|
by JUANDENT
function returning an int cannot be assigned to
|
|
[2 replies] Last: b.value() returns an int (not addressable temporary) Correct. The ... (by seeplus)
|
by JUANDENT
order of importing does affect the outcome!
|
|
[2 replies] Last: the order of importing modules does matter if they are at least vague... (by keskiverto)
|
by JUANDENT
subclass does not deduce template argument in class with using std::vector<T>::vector
|
|
[3 replies] Last: The class needs to be declared with 2 parameters like std::vector! Tha... (by JUANDENT)
|
by LsDefect
Unlock mutex when returning
|
|
[2 replies] Last: Whoops you're right, thanks I'll make bufferLoaded atomic. As for out... (by LsDefect)
|
by JUANDENT
how to read a single character as with getchar but in C++?
|
|
[8 replies] Last: in C one could read a single character from the keyboard with functio... (by seeplus)
|
by JUANDENT
Strange arithmetic conversions
|
|
[5 replies] Last: This is one of the reasons why .ssize()/std::ssize was introduced to g... (by seeplus)
|
by JUANDENT
How to clear the buffer for istreams?
|
|
[1 reply] : https://en.cppreference.com/w/cpp/io/basic_istream/ignore (by salem c)
|
by leo2008
c++ array negative numbers
|
|
[4 replies] Last: to move all the negative numbers to the left end of the array without... (by seeplus)
|
by leo2008
c++ indice 2 numbers
|
|
[4 replies] Last: Another way is to use combinations. Consider this which will find the ... (by seeplus)
|
by JUANDENT
What is the difference between declaring a variable auto and declaring it auto&&?
|
|
[9 replies] Last: Why auto&& and not auto& ? I had to look this one up. && is speci... (by jonnin)
|