aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-08-07 11:31:08 +0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-08-07 11:32:49 +0200
commit97cf6d0efb1a8a8c7cef5d984f6d23c1470af4cf (patch)
tree99155b068c1cd2826d07c7010503a01a0b94954e /m4
parentevas gl - did not free all atlas formats - fix (diff)
downloadefl-97cf6d0efb1a8a8c7cef5d984f6d23c1470af4cf.tar.gz
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.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_stdcxx_11.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/efl_stdcxx_11.m4 b/m4/efl_stdcxx_11.m4
index cdd3934c5d..f606bc0379 100644
--- a/m4/efl_stdcxx_11.m4
+++ b/m4/efl_stdcxx_11.m4
@@ -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;
])