]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/26_numerics/valarray/69116.cc
Constrain std::valarray functions and operators
authorJonathan Wakely <jwakely@redhat.com>
Fri, 22 Jan 2016 21:15:41 +0000 (21:15 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 22 Jan 2016 21:15:41 +0000 (21:15 +0000)
commitd1fb377c689e7586492b357617ff0e78ab0228b3
treead7a4f7f4f4601b73ba194c275b74794cfdb2ca5
parent130ee9a9fc802926d2fe2701e041c98a6fb0f981
Constrain std::valarray functions and operators

PR libstdc++/69116
* include/bits/valarray_before.h (__fun, __fun_with_valarray): Only
define result_type for types which can be safely used with valarrays.
* testsuite/26_numerics/valarray/69116.cc: New.

From-SVN: r232748
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/valarray_before.h
libstdc++-v3/testsuite/26_numerics/valarray/69116.cc [new file with mode: 0644]