Skip to content

Please implement a check for try in case libstdc++ implements c++11 where tr1 is merged into std #98

@GoogleCodeExporter

Description

@GoogleCodeExporter
Please implement a check for try in case libstdc++ implements c++11 where tr1 
is merged into std. For instance, clang on OSX 10.9 w/ Xcode 5.0.2 & llvm 5.0 
(500) doesn't include tr1 headers anymore, so build will fail.

Fix here is to patch the header for now:

#define HASH_FUN_H <tr1/functional> => #define HASH_FUN_H <functional>
#define HASH_NAMESPACE std::tr1 => #define HASH_NAMESPACE std

There needs to be a check in place that could verify if either TR1 can be used 
or a newer version is in place. This can easily be done by verifying the std:

if ( __cplusplus >= 201103L ) { /*...*/ }

Thanks

Original issue reported on code.google.com by kkooporation@gmail.com on 3 Mar 2014 at 11:14

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions