diff options
Diffstat (limited to 'source/blender/freestyle/intern/system/Cast.h')
-rw-r--r-- | source/blender/freestyle/intern/system/Cast.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/freestyle/intern/system/Cast.h b/source/blender/freestyle/intern/system/Cast.h index f3efcc462bf..8318633c4b5 100644 --- a/source/blender/freestyle/intern/system/Cast.h +++ b/source/blender/freestyle/intern/system/Cast.h @@ -24,17 +24,15 @@ namespace Freestyle { -namespace Cast +namespace Cast { +template<class T, class U> U *cast(T *in) { - template <class T, class U> - U *cast(T *in) - { - if (!in) - return NULL; - return dynamic_cast<U*>(in); - } -} // end of namespace Cast + if (!in) + return NULL; + return dynamic_cast<U *>(in); +} +} // end of namespace Cast } /* namespace Freestyle */ -#endif // __FREESTYLE_CAST_H__ +#endif // __FREESTYLE_CAST_H__ |