diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2008-06-26 10:45:43 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2008-06-26 10:45:43 +0000 |
commit | 53e5c4062a16b2df412d1710f457eb54b956b8b3 (patch) | |
tree | a5b611e75b1a1ad01c90cafd1ea59bd8604b9ace /libstdc++-v3 | |
parent | 8c2277205a328e3227585e960ed9e0ebd1e40fce (diff) |
base.h (plus, multiplies): Use __typeof__, not typeof.
2008-06-26 Paolo Carlini <paolo.carlini@oracle.com>
* include/parallel/base.h (plus, multiplies): Use __typeof__,
not typeof.
From-SVN: r137146
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/parallel/base.h | 16 |
2 files changed, 13 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f744de4340c..201bba84b7f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-06-26 Paolo Carlini <paolo.carlini@oracle.com> + + * include/parallel/base.h (plus, multiplies): Use __typeof__, + not typeof. + 2008-06-24 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_algo.h (remove_if): Cast __pred result to bool. diff --git a/libstdc++-v3/include/parallel/base.h b/libstdc++-v3/include/parallel/base.h index b713ee7a410..54c26d8ca6d 100644 --- a/libstdc++-v3/include/parallel/base.h +++ b/libstdc++-v3/include/parallel/base.h @@ -287,8 +287,8 @@ struct less<_Tp, _Tp> : public std::binary_function<_Tp, _Tp, bool> template<typename _Tp1, typename _Tp2> struct plus : public std::binary_function<_Tp1, _Tp2, _Tp1> { - typedef typeof(*static_cast<_Tp1*>(NULL) - + *static_cast<_Tp2*>(NULL)) result; + typedef __typeof__(*static_cast<_Tp1*>(NULL) + + *static_cast<_Tp2*>(NULL)) result; result operator()(const _Tp1& __x, const _Tp2& __y) const @@ -299,8 +299,8 @@ template<typename _Tp1, typename _Tp2> template<typename _Tp> struct plus<_Tp, _Tp> : public std::binary_function<_Tp, _Tp, _Tp> { - typedef typeof(*static_cast<_Tp*>(NULL) - + *static_cast<_Tp*>(NULL)) result; + typedef __typeof__(*static_cast<_Tp*>(NULL) + + *static_cast<_Tp*>(NULL)) result; result operator()(const _Tp& __x, const _Tp& __y) const @@ -312,8 +312,8 @@ template<typename _Tp> template<typename _Tp1, typename _Tp2> struct multiplies : public std::binary_function<_Tp1, _Tp2, _Tp1> { - typedef typeof(*static_cast<_Tp1*>(NULL) - * *static_cast<_Tp2*>(NULL)) result; + typedef __typeof__(*static_cast<_Tp1*>(NULL) + * *static_cast<_Tp2*>(NULL)) result; result operator()(const _Tp1& __x, const _Tp2& __y) const @@ -324,8 +324,8 @@ template<typename _Tp1, typename _Tp2> template<typename _Tp> struct multiplies<_Tp, _Tp> : public std::binary_function<_Tp, _Tp, _Tp> { - typedef typeof(*static_cast<_Tp*>(NULL) - * *static_cast<_Tp*>(NULL)) result; + typedef __typeof__(*static_cast<_Tp*>(NULL) + * *static_cast<_Tp*>(NULL)) result; result operator()(const _Tp& __x, const _Tp& __y) const |