diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2008-11-11 12:15:59 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2008-11-11 12:15:59 +0000 |
commit | 8d8a4e9d3d650687dfa24d58e79fdc70d0f77173 (patch) | |
tree | 0ed3d94cd555c0a5fdd5f06a27bf1e0698192558 /libstdc++-v3/include/ext/cast.h | |
parent | ddb47467a200b8e90ecaa9df3ac79c0c45104526 (diff) | |
download | gcc-8d8a4e9d3d650687dfa24d58e79fdc70d0f77173.tar.gz |
extptr_allocator.h: Minor tweaks.
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/extptr_allocator.h: Minor tweaks.
* include/ext/pointer.h: Likewise.
* include/ext/cast.h: Likewise.
From-SVN: r141764
Diffstat (limited to 'libstdc++-v3/include/ext/cast.h')
-rw-r--r-- | libstdc++-v3/include/ext/cast.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/libstdc++-v3/include/ext/cast.h b/libstdc++-v3/include/ext/cast.h index 02aedf181c9..e8325daf34d 100644 --- a/libstdc++-v3/include/ext/cast.h +++ b/libstdc++-v3/include/ext/cast.h @@ -27,8 +27,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _EXT_CAST_ -#define _EXT_CAST_ 1 +#ifndef _CAST_H +#define _CAST_H 1 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx); @@ -48,14 +48,11 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx); */ template<typename _ToType> struct _Caster - { - typedef typename _ToType::element_type* type; - }; + { typedef typename _ToType::element_type* type; }; + template<typename _ToType> struct _Caster<_ToType*> - { - typedef _ToType* type; - }; + { typedef _ToType* type; }; /** * Casting operations for cases where _FromType is not a standard pointer. @@ -118,4 +115,4 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx); _GLIBCXX_END_NAMESPACE -#endif +#endif // _CAST_H |