eina-cxx: Added test for inheriting constructors in the C++11 compiler
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Thu, 7 Aug 2014 09:31:08 +0000 (11:31 +0200)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Thu, 7 Aug 2014 09:32:49 +0000 (11:32 +0200)
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.

m4/efl_stdcxx_11.m4

index cdd3934..f606bc0 100644 (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;
 ])