I am getting some -Wnarrowing conversion errors when doubles are narrowed to floats. How can I do this in a well defined way? Preferably with an optio ...
I am getting some -Wnarrowing conversion errors when doubles are narrowed to floats. How can I do this in a well defined way? Preferably with an optio ...
For a school assignment, I am required to use C++ version 03. I have a Mac, and I was told to use Xcode by my instructor. After a bit of research, I ...
I'm looking for solution how to set standard of C++ to 2003 in cmake. I can find a lot of information how to do it on later versions like 11, 17 and s ...
I have a embedded C++03 codebase that needs to support different vendors of gadgets, but only ever one at a time. Most of the functions overlap betwee ...
I am using C++ 03, previously I have code: static const std::vector<std::pair<uint16_t, uint16_t>> a = boost::assign::list_of(std::make_p ...
Using C++98 (or C++03), how can a class (B) be defined, such that no objects can be instantiated from a class (D) deriving from B. In C++11 (or new ...
Is it allowed by the C++03 standard to append a std::vector to itself? I wonder if the source iterators can become invalid if v needs to reallocate me ...
I want to create an alias arr for std::array<T, 32>. However, it does not work on GCC 4.4.6 which supports only C++0x(without type alias). I ...
I'm no mathematician, so I don't know if there is terminology for this (I could not find it). What I'm looking for is C++ code to generate all permut ...
Copy-elision is, in some cases, mandatory in c++17, and permitted in c++11/14. This in particular concerns copy initialization. For example, the follo ...
I've been having problems with RAD Studio XE components triggering a cascade of events - like when component A in-code modification altered content of ...
Problematic C++03 code: #include <cstddef> struct Foo { explicit Foo(const char *){} Foo &operator=(const char *) {return *this;} ...
I have a doubt regarding non-scoped enums behavior in C++03. I have read multiple questions and articles on Stack overflow and other pages. I am usin ...
The above code works as expected, however, in the main() instead of calling the functions, how can I store the pointer to the templatized Setter:set ...
N2431 is the paper that introduces nullptr. It says: The current C++ standard provides the special rule that 0 is both an integer constant and a n ...
MISRA c++:2008 was published in 2008. It was written for C++03. Does this refer to just the syntax of C++2003 standard or do have to use the compiler ...
Visual Studio 2017 only shows the ability to build: ISO C++14 Standard ISO C++17 Standard ISO C++ Latest Draft Standard Is there a way to c ...
So I am using Boost's R-tree for an optimized spatial search. The parameters of the query is a search center and a radius, so I would be using my own ...
I know how to declare a struct where the name contains the current line number. The following code works as expected. How can I write the typedef l ...
I need to write an implementation of unique_ptr for C++03 which would only absorb changes made in common codebase under other platforms where C++11 is ...