summaryrefslogtreecommitdiff
path: root/TAO/tests/Sequence_Unit_Tests/value_traits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Sequence_Unit_Tests/value_traits.hpp')
-rw-r--r--TAO/tests/Sequence_Unit_Tests/value_traits.hpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/TAO/tests/Sequence_Unit_Tests/value_traits.hpp b/TAO/tests/Sequence_Unit_Tests/value_traits.hpp
index b491b8bdabd..91bb20e8696 100644
--- a/TAO/tests/Sequence_Unit_Tests/value_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/value_traits.hpp
@@ -10,9 +10,12 @@
*
* @author Carlos O'Ryan
*/
+#include "tao/Basic_Types.h"
#include <algorithm>
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
namespace TAO
{
namespace details
@@ -25,12 +28,16 @@ struct value_traits
typedef T const const_value_type;
inline static void zero_range(
- value_type * /* begin */, value_type * /* end */)
- {}
+ value_type * begin , value_type * end)
+ {
+ std::fill(begin, end, value_type ());
+ }
inline static void initialize_range(
- value_type * /* begin */, value_type * /* end */)
- {}
+ value_type * begin, value_type * end)
+ {
+ std::fill(begin, end, value_type ());
+ }
inline static void copy_range(
value_type * begin, value_type * end, value_type *dst)
@@ -42,4 +49,6 @@ struct value_traits
} // namespace details
} // namespace CORBA
+TAO_END_VERSIONED_NAMESPACE_DECL
+
#endif // guard_value_traits_hpp