diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-26 21:59:27 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-26 22:28:22 -0700 |
commit | 2f4fc005937e75d931eb6ef87a3fe16364d45113 (patch) | |
tree | 2a60ea7b58e9a3045ec0e0754e075ae958e46409 /src/compat/cast.hpp | |
parent | f5fcb973cfad6221264a2a859f5236c3cef2c470 (diff) | |
download | tmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.tar.gz tmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.tar.bz2 tmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.tar.xz tmwa-2f4fc005937e75d931eb6ef87a3fe16364d45113.zip |
Stick everything in a namespace
Diffstat (limited to 'src/compat/cast.hpp')
-rw-r--r-- | src/compat/cast.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/cast.hpp b/src/compat/cast.hpp index b237df4..38a8997 100644 --- a/src/compat/cast.hpp +++ b/src/compat/cast.hpp @@ -25,6 +25,8 @@ # include <type_traits> +namespace tmwa +{ template<class T> const T& const_(T& t) { @@ -68,5 +70,6 @@ typename std::remove_pointer<T>::type *sign_cast(U *u) static_assert(sizeof(T_) == sizeof(U), "sign cast must be same size"); return reinterpret_cast<T_ *>(u); } +} // namespace tmwa #endif // TMWA_COMPAT_CAST_HPP |