Skip to content
Snippets Groups Projects
Commit 951edf0a authored by Christian Engwer's avatar Christian Engwer
Browse files

- add test for SFINAE on variadic constructors

- fix typo in rvalue reference test
(credits Steffen Müthing)

[[Imported from SVN: r6350]]
parent 78a24bb5
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,10 @@ AC_DEFUN([VARIADIC_CONSTRUCTOR_SFINAE_CHECK],[
int i;
};],
[
assert( A<int>().i +
A<int>(2).i +
A<int>("foo",3.4).i +
A<int>({2,5,6},'a',A<int>()).i == 0);
assert( A<int>().i +
A<int>(2).i +
A<int>("foo",3.4).i +
A<int>(8,'a',A<int>()).i == 0);
return 0;
])],[
HAVE_VARIADIC_CONSTRUCTOR_SFINAE=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment