When I first learned C++ 6-7 years ago, what I learned was basically "C with Classes". std::vector was definitely an advanced topic, something you could learn about if you really wanted to. And there was certainly no one telling me that destructors could be harnessed to help manage memory.
Today, everywhere I look I see RAII and SFINAE ...
To what extent are modern C++ features like:
polymorphism,
STL,
exception safety/handling,
templates with policy-based class design,
smart pointers
new/delete, placement new/delete
used in game studios? I would be interested to know the names of libraries and the C++ features they use. For example, Orge3D uses all modern C++ feat...
Hi there
IMHO to me OOPS, design patterns make sense and i have been able to apply them practically.
But when it comes to "generic programming /meta programming" of the Modern C++ kind, i am left confused.
-- Is it a new programming/design paradigm ?
-- Is it just limited to "library development"? If not, What design/coding situatio...
I haven't done much c programming but when I do when I need a false I put 0 when I want true I put 1, (ex. while(1)), in other cases I use things like "while(ptr)" or "if(x)".
Should I try using C99 booleans, should I recommend them to others if I'm helping people new to programming learn c basics(thinking of cs 1?? students)?
I'm p...
I've recently started reading Modern C++ Design by Andrei Alexandrescu. After reading Compile-Time Assertions, I tried the following code:
template<bool> struct CompileTimeChecker
{
CompileTimeChecker(...){};
};
template<> struct CompileTimeChecker<false>{};
#define STATIC_CHECK(expr, msg) \
{\
class ERROR_##msg{}; \
(void...