diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-09-10 16:21:49 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-09-10 16:21:49 +0000 |
commit | c6664a06093a9da96028d4f5488dbcab6ecab5b4 (patch) | |
tree | 4c35dea2f263a343a35d9ce4212a481f1cf90602 /libdimensionxx/dimensionxx/array.hpp | |
parent | cf3d6906df7ffb4efa5398832e44ab31fe3b2721 (diff) | |
download | dimension-c6664a06093a9da96028d4f5488dbcab6ecab5b4.tar.xz |
New utility.hpp header.
Diffstat (limited to 'libdimensionxx/dimensionxx/array.hpp')
-rw-r--r-- | libdimensionxx/dimensionxx/array.hpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libdimensionxx/dimensionxx/array.hpp b/libdimensionxx/dimensionxx/array.hpp index e9c2967..b3b0496 100644 --- a/libdimensionxx/dimensionxx/array.hpp +++ b/libdimensionxx/dimensionxx/array.hpp @@ -188,20 +188,6 @@ namespace Dimension std::tr1::shared_ptr<T> m_object; }; - // A constraint enforcing that T is a POD type by making it part of a union. - // Taking the address of this function will cause a compile-time failure if - // T is not a POD type. - template <typename T> - void - POD_constraint() - { - union - { - T t; - } constraint; - static_cast<void>(constraint); // Silence unused variable warning - } - // Array_Element template <typename T> |