summaryrefslogtreecommitdiff
path: root/TAO/tao/Object_Reference_Traits_T.h
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2011-04-08 13:25:36 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2011-04-08 13:25:36 +0000
commit0fbb9005bc5c22466357e627c13f28aa08d42116 (patch)
tree6342b9e03313939538b54af3b6d2615311cb1c52 /TAO/tao/Object_Reference_Traits_T.h
parentf9979f091cd93a34a38accbe6a0e32ab32437f9e (diff)
downloadATCD-0fbb9005bc5c22466357e627c13f28aa08d42116.tar.gz
Fri Apr 8 13:21:17 UTC 2011 Phil Mesnier <mesnier_p@ociweb.com>
* tao/Array_Traits_T.h: * tao/Generic_Sequence_T.h: * tao/Object_Reference_Traits_T.h: * tao/String_Traits_T.h: * tao/Value_Traits_T.h: * tao/Valuetype/Valuetype_Traits_T.h: Optimizations for growing unbounded sequences by changing the length. Shallow copies are now used whenever possible during the duplication of the existing sequence elements.
Diffstat (limited to 'TAO/tao/Object_Reference_Traits_T.h')
-rw-r--r--TAO/tao/Object_Reference_Traits_T.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/Object_Reference_Traits_T.h b/TAO/tao/Object_Reference_Traits_T.h
index 08532daa8cd..826c084dc7f 100644
--- a/TAO/tao/Object_Reference_Traits_T.h
+++ b/TAO/tao/Object_Reference_Traits_T.h
@@ -53,10 +53,11 @@ struct object_reference_traits_decorator
// Allow MSVC++ >= 8 checked iterators to be used.
template <typename iter>
- inline static void copy_swap_range(
+ inline static bool copy_swap_range(
object_type ** begin, object_type ** end, iter dst)
{
- std::swap_ranges(begin, end, dst);
+ std::copy(begin, end, dst);
+ return true;
}
inline static void release_range(