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:
Felipe Magno de Almeida 2014-08-07 11:31:08 +02:00
parent f5cff9490e
commit 97cf6d0efb
1 changed files with 3 additions and 0 deletions

View File

@ -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;
])