This is a cool trick, but also a reminder that C++ is just inherently out to ruin your day in whatever way it can.
I posted it because it’s the only time I’ve read a C++ blog and felt like I understood what it was saying. 😂
For the disfluent at C++, I’m left guessing how to mark an overload with =delete.
=delete
I’m guessing void foo(const char*, int, bool = false) = delete; // #1 …
void foo(const char*, int, bool = false) = delete; // #1
I was wondering the same thing. Looks like you got it right! http://www.stroustrup.com/C++11FAQ.html#default
This is a cool trick, but also a reminder that C++ is just inherently out to ruin your day in whatever way it can.
I posted it because it’s the only time I’ve read a C++ blog and felt like I understood what it was saying. 😂
For the disfluent at C++, I’m left guessing how to mark an overload with
=delete
.I’m guessing
void foo(const char*, int, bool = false) = delete; // #1
…I was wondering the same thing. Looks like you got it right! http://www.stroustrup.com/C++11FAQ.html#default