When I try to include things like <unordered_map>
it fails and says the file doesn't exist, while when I try to include <tr1/unordered_map>
it works. however, the include files that are present also in c++03 are found, and are c++11 (like <vector>
has move constructor). Also, headers that are only in c++11 and not in tr1 are found normally as well, like <thread>
.
Its like everything that was new in tr1 was just thrown into tr1 folder and everything else into normal include.
Why is this happening? Is there any fix to it without modifying source files?
Passing -I/path/to/include/tr1
won't work because everything is in the tr1 namespace.
The compiler I'm using is
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)