diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2007-03-13 17:02:29 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2007-03-13 17:02:29 +0000 |
commit | 7cddfd814db62d1bcc1a4f8be3c73e53995297de (patch) | |
tree | 7bdc5dba16e0dfcf6fdf4919b0b470467e820d0f /TAO | |
parent | 6b7a8314f8edc8220f9b81ba788589009647f6ba (diff) | |
download | ATCD-7cddfd814db62d1bcc1a4f8be3c73e53995297de.tar.gz |
ChangeLogTag:Tue Mar 13 18:00:34 UTC 2007 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/ChangeLog | 7 | ||||
-rw-r--r-- | TAO/tao/Valuetype/Valuetype_Traits_T.h | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 828207f7929..c8b44bd2034 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,10 @@ +Tue Mar 13 18:00:34 UTC 2007 Ossama Othman <ossama_othman at symantec dot com> + + * tao/Valuetype/Valuetype_Traits_T.h (copy_range): + + Made this trait method a member template to provide support for + checked destination iterators. + Tue Mar 13 14:17:52 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * orbsvcs/tests/Bug_2800_Regression/nsmain.cpp: diff --git a/TAO/tao/Valuetype/Valuetype_Traits_T.h b/TAO/tao/Valuetype/Valuetype_Traits_T.h index f8b5ee460be..c0107c9ebb7 100644 --- a/TAO/tao/Valuetype/Valuetype_Traits_T.h +++ b/TAO/tao/Valuetype/Valuetype_Traits_T.h @@ -41,11 +41,21 @@ struct valuetype_traits_decorator std::generate(begin, end, &derived::default_initializer); } +# ifndef ACE_LACKS_MEMBER_TEMPLATES + // Allow MSVC++ >= 8 checked iterators to be used. + template <typename iter> + inline static void copy_range( + object_type ** begin, object_type ** end, iter dst) + { + std::transform(begin, end, dst, &derived::duplicate); + } +#else inline static void copy_range( object_type ** begin, object_type ** end, object_type ** dst) { std::transform(begin, end, dst, &derived::duplicate); } +#endif /* ACE_LACKS_MEMBER_TEMPLATES */ inline static void release_range( object_type ** begin, object_type ** end) |