forked from enlightenment/efl
eina-cxx: Added test for inheriting constructors in the C++11 compiler
This adds the inheriting constructor feature test to the m4 macros to avoid compilation of the C++11 binding in constructors without this features, where they would unavoidably fail compilation. This eliminates GCC 4.7.x since inheriting constructors were available only from GCC 4.8 and forward.
This commit is contained in:
parent
f5cff9490e
commit
97cf6d0efb
|
@ -51,6 +51,9 @@ m4_define([_EFL_CXX_COMPILE_STDCXX_11_testbody], [
|
|||
check_type c;
|
||||
check_type&& cr = static_cast<check_type&&>(c);
|
||||
|
||||
struct A { A(int); };
|
||||
struct B : A { using A::A; }; // inheriting constructors
|
||||
|
||||
auto d = a;
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in New Issue