Skip to content

Support for "bits/type_traits.h" #63

Description

@davide-prade

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions