TI ARM C++14 & Polyspace: Error “std::underlying_type cv::AccessFlag has no member ‘type’” in
Hi all,
I’m encountering an error while compiling my project with the TI -> ARM compiler using Polyspace in C++14 mode.
Opencv code follows:
enum AccessFlag {
ACCESS_READ = 1 << 24,
ACCESS_WRITE = 1 << 25,
ACCESS_RW = 3 << 24,
ACCESS_MASK = ACCESS_RW,
ACCESS_FAST = 1 << 26
};
CV_ENUM_FLAGS(AccessFlag) ——> Error in this line
During compilation, I get the following error in <type_traits>:
Error: static assertion failed with "The underyling_type trait requires compiler support. Either no such support exists or libc++ does not know how to use it."
static_assert(_Support, "The underyling_type trait requires compiler "
^
detected during instantiation of class "std::underlying_type<_Tp, _Support> [with _Tp=cv::AccessFlag, _Support=0]" at line 66 of "C:opencvincludeopencv4opencv2coremat.hpp"
Error: class "std::underlying_type<cv::AccessFlag>" has no member "type"
The static assertion in <type_traits> is triggered, indicating that the TI ARM standard library may not fully support this feature eventhough using cpp14.
Has anyone encountered this issue when using TI ARM’s compiler (with Polyspace) in C++14 mode are there any recommended workarounds?
Thanks in advance.Hi all,
I’m encountering an error while compiling my project with the TI -> ARM compiler using Polyspace in C++14 mode.
Opencv code follows:
enum AccessFlag {
ACCESS_READ = 1 << 24,
ACCESS_WRITE = 1 << 25,
ACCESS_RW = 3 << 24,
ACCESS_MASK = ACCESS_RW,
ACCESS_FAST = 1 << 26
};
CV_ENUM_FLAGS(AccessFlag) ——> Error in this line
During compilation, I get the following error in <type_traits>:
Error: static assertion failed with "The underyling_type trait requires compiler support. Either no such support exists or libc++ does not know how to use it."
static_assert(_Support, "The underyling_type trait requires compiler "
^
detected during instantiation of class "std::underlying_type<_Tp, _Support> [with _Tp=cv::AccessFlag, _Support=0]" at line 66 of "C:opencvincludeopencv4opencv2coremat.hpp"
Error: class "std::underlying_type<cv::AccessFlag>" has no member "type"
The static assertion in <type_traits> is triggered, indicating that the TI ARM standard library may not fully support this feature eventhough using cpp14.
Has anyone encountered this issue when using TI ARM’s compiler (with Polyspace) in C++14 mode are there any recommended workarounds?
Thanks in advance. Hi all,
I’m encountering an error while compiling my project with the TI -> ARM compiler using Polyspace in C++14 mode.
Opencv code follows:
enum AccessFlag {
ACCESS_READ = 1 << 24,
ACCESS_WRITE = 1 << 25,
ACCESS_RW = 3 << 24,
ACCESS_MASK = ACCESS_RW,
ACCESS_FAST = 1 << 26
};
CV_ENUM_FLAGS(AccessFlag) ——> Error in this line
During compilation, I get the following error in <type_traits>:
Error: static assertion failed with "The underyling_type trait requires compiler support. Either no such support exists or libc++ does not know how to use it."
static_assert(_Support, "The underyling_type trait requires compiler "
^
detected during instantiation of class "std::underlying_type<_Tp, _Support> [with _Tp=cv::AccessFlag, _Support=0]" at line 66 of "C:opencvincludeopencv4opencv2coremat.hpp"
Error: class "std::underlying_type<cv::AccessFlag>" has no member "type"
The static assertion in <type_traits> is triggered, indicating that the TI ARM standard library may not fully support this feature eventhough using cpp14.
Has anyone encountered this issue when using TI ARM’s compiler (with Polyspace) in C++14 mode are there any recommended workarounds?
Thanks in advance. polyspace, opencv, type_traits, standard header, ti arm, compiler, stdlib, libcxx MATLAB Answers — New Questions