Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "bits/type_traits.h" #63

Open
davide-prade opened this issue Mar 25, 2021 · 1 comment
Open

Support for "bits/type_traits.h" #63

davide-prade opened this issue Mar 25, 2021 · 1 comment

Comments

@davide-prade
Copy link

I am cross-compiling for ARM architecture with arm-linux-g++ (GCC) 3.4.4 compiler and the standard library header type_traits is under bits folder.
To fix the related compilation issue I have defined the following preprocessor directives, but I think that there is a better way to do the same thing.

#define optional_HAVE_BITS_TYPE_TRAITS  defined(__arm__)
#if optional_HAVE( BITS_TYPE_TRAITS )
# include <bits/type_traits.h>
#elif optional_HAVE( TYPE_TRAITS )
# include <type_traits>
#elif optional_HAVE( TR1_TYPE_TRAITS )
# include <tr1/type_traits>
#endif
@martinmoene
Copy link
Owner

<type_traits> is a C++11 header. The first GCC compiler to support C++11 seems to be gcc 4.3/4.8 (see bottom of page).

Doesn't seem like a good idea to me to go down this path...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants