Tag Archives: C++

Squashing bugs in AnKi

There are some universally accepted truths in software and one of those truths is that all software has bugs. Some people are more careful than others but nobody is perfect and nobody can write 100% bug free code. Another truth … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

C++11: Variadic templates. Part I

UPDATE: Adding a new concept UPDATE 24/Apr/2013: Fixing concept 3 The new C++ standard, namely C++11, is here at last; offering many additions to the language’s core as well as in the companion library, the STL. Without doubt it will … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

C++ Class: Accessing contents but not the container

When constructing a C++ class a good practice is to never have any member variables in public scope and this includes containers. In this little article we will discuss how to have a C++ container as a private member and … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Multithreading: Threadpool

Multithreading is a concept that exist for many decades in computer science, nevertheless, only in recent years it become a trend in game development with the arrival of multi-core CPUs in our home PCs. In this small article we will … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

STL auto_ptr: A bad idea

C++ Standard Template Library (STL) offers a smart pointer called auto_ptr. auto_ptr is a template class that acts as a wrapper for a single dynamically allocated class instance. Its purpose and its usefulness is to deallocate the memory when this … Continue reading

Posted in Uncategorized | Tagged | Leave a comment