summaryrefslogtreecommitdiff
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
parentf5cff9490e04cea98d8f22530c0098f8475a685f (diff)
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.
-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], [
51 check_type c; 51 check_type c;
52 check_type&& cr = static_cast<check_type&&>(c); 52 check_type&& cr = static_cast<check_type&&>(c);
53 53
54 struct A { A(int); };
55 struct B : A { using A::A; }; // inheriting constructors
56
54 auto d = a; 57 auto d = a;
55]) 58])
56 59