|
You are here |
disq.us | ||
| | | | |
solarianprogrammer.com
|
|
| | | | | How to compile from sources GCC 10 on macOS Catalina | |
| | | | |
rodusek.com
|
|
| | | | | Getting the name of a type in C++ is a hassle. For something that should be trivially known by the compiler at compile-time, the closest thing we have to getting the type in a cross-platform way is to use std::type_info::name which is neither at compile-time, nor is it guaranteed to be human-readable. In fact, both GCC and Clang actually return the compiler's mangled name rather than the human-readable name we are used to. Let's try to make something better using the modern utilities from c++17 and a little creative problem solving! | |
| | | | |
www.cppstories.com
|
|
| | | | | How do you initialise a string member in the constructor? By using const string&, string value and move, string_view or maybe something else? Let's have a look and compare possible options. Intro Below there's a simple class with one string member. We'd like to initialise it. For example: class UserName { std::string mName; public: UserName(const std::string& str) : mName(str) { } }; As you can see a constructor is taking const std::string& str. | |
| | | | |
newsletter.automationhacks.io
|
|
| | | What does the interview process look like at Microsoft India for a Senior engineer? What tips and approaches work well. In this blog, I'll breakdown my interview experience and share reflections on how to prepare well. | ||