From c6664a06093a9da96028d4f5488dbcab6ecab5b4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 10 Sep 2009 16:21:49 +0000 Subject: New utility.hpp header. --- libdimensionxx/dimensionxx/array.hpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libdimensionxx/dimensionxx/array.hpp') 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 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 - void - POD_constraint() - { - union - { - T t; - } constraint; - static_cast(constraint); // Silence unused variable warning - } - // Array_Element template -- cgit v1.2.3