diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-12 21:17:25 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-12 21:17:25 +0000 |
commit | 1928016fe7aa439d4bfb61d3a7e7b7399ca7a229 (patch) | |
tree | acc592fefdeb322cc4d2f4b9c8cfe0f3780c8fe3 /libdimensionxx/dimensionxx/color.hpp | |
parent | 597b9a13dae1f514ca8afa56bab008cb67d4ac40 (diff) | |
download | dimension-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.hpp | 9 |
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(); |