summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/color.hpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-12 21:17:25 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-12 21:17:25 +0000
commit1928016fe7aa439d4bfb61d3a7e7b7399ca7a229 (patch)
treeacc592fefdeb322cc4d2f4b9c8cfe0f3780c8fe3 /libdimensionxx/dimensionxx/color.hpp
parent597b9a13dae1f514ca8afa56bab008cb67d4ac40 (diff)
downloaddimension-1928016fe7aa439d4bfb61d3a7e7b7399ca7a229.tar.xz
Fix Array's of objects which wrap their C types by value.
Diffstat (limited to 'libdimensionxx/dimensionxx/color.hpp')
-rw-r--r--libdimensionxx/dimensionxx/color.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/libdimensionxx/dimensionxx/color.hpp b/libdimensionxx/dimensionxx/color.hpp
index 7d804f5..ad28c4d 100644
--- a/libdimensionxx/dimensionxx/color.hpp
+++ b/libdimensionxx/dimensionxx/color.hpp
@@ -203,17 +203,16 @@ namespace Dimension
// Array_Element specialization
template <>
class Array_Element<Color>
- : public DMNSN_Array_Element<Color, dmnsn_color>
+ : public By_Value_Array_Element<Color, dmnsn_color>
{
public:
typedef dmnsn_color C_Type;
- Array_Element()
- : DMNSN_Array_Element<Color, dmnsn_color>(Color()) { }
+ Array_Element() { }
Array_Element(Color& color)
- : DMNSN_Array_Element<Color, dmnsn_color>(color) { }
+ : By_Value_Array_Element<Color, dmnsn_color>(color) { }
Array_Element(C_Type c)
- : DMNSN_Array_Element<Color, dmnsn_color>(c) { }
+ : By_Value_Array_Element<Color, dmnsn_color>(c) { }
// Array_Element(const Array_Element& ae);
// ~Array_Element();