C++0x constexpr PATCHes #11-13: library usage
Paolo Carlini
paolo.carlini@oracle.com
Mon Nov 1 14:00:00 GMT 2010
Hi,
@@ -82,7 +82,7 @@ namespace std
* @param il Initializer list.
*/
template<class _Tp>
- inline const _Tp*
+ constexpr const _Tp*
begin(initializer_list<_Tp> __ils)
{ return __ils.begin(); }
@@ -92,7 +92,7 @@ namespace std
* @param il Initializer list.
*/
template<class _Tp>
- inline const _Tp*
+ constexpr const _Tp*
end(initializer_list<_Tp> __ils)
{ return __ils.end(); }
}
I think the inline should not go.
Paolo.
More information about the Gcc-patches
mailing list