C++03 is an earlier revision of the C++ standard, with C++98 as its predecessor and C++11 as its successor.

learn more… | top users | synonyms

5
votes
2answers
183 views

Fixed size matrix implementation

I implemented a fixed-size matrix class which supports basic matrix operations (cannot use C++11). What do you think, and how could it be improved? ...
5
votes
2answers
71 views

Avoiding casts in abstract types

I asked this question on Stack Overflow and in the comments someone had this to say. In a proper design, you should almost never have to do a dynamic_cast, even if it's hidden inside some nice ...
3
votes
0answers
137 views

Dijkstra's and Prim's algorithms: correctness/efficiency

This is in preparation for a competition that only allows C++03. ...
2
votes
1answer
107 views

RAII-Style Lockable Objects

TL;DR: Without the phrases "use Boost" and "use C++11", does the posted code for RAII-style locking of a resource look correct and safe, or is there something I've missed. Long Version: I am working ...
1
vote
1answer
104 views

Using set for unordered, unique list of elements

In C++11 we have the option of using std::unordered_set if we require a list of elements that have no duplicates but order is not important. In C++03 we don't have ...
10
votes
2answers
379 views

make_auto implementation for C++03 compilers

I want to provide, in the the spirit of C++11/boost make_shared and C++14 make_unique, a production-ready make_auto for C++03 compilers. So, inspired boost's make_shared implementation for C++03 ...
3
votes
2answers
138 views

legacy code and exception handling

After some 'digging' into the dark corners of legacy code I've found class, which handles INI files. It does reading and writing to the file, but I haven't found any exception handling logic. What ...
6
votes
2answers
218 views

Custom nullptr_t class

I tried to write a nullptr_t class based on the official proposal to be used in C++03 only. The only differences with the proposal are that we can compare two ...