summaryrefslogtreecommitdiff
path: root/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-02-18 11:15:38 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-02-18 11:15:38 +0000
commitd593920cb1bd412028e363a6d4318c0f7b5d81e1 (patch)
tree39190438815731d6b05ca03e6fb4da3c797ffbf6 /TAO/tao/Bounded_Reference_Allocation_Traits_T.h
parent950a0dbe8bc8c5661634412ce59ebaf1d64ac7e6 (diff)
downloadATCD-d593920cb1bd412028e363a6d4318c0f7b5d81e1.tar.gz
ChangeLogTag: Wed Feb 18 10:37:15 UTC 2009 Vladimir Zykov <vz@prismtech.com>
Diffstat (limited to 'TAO/tao/Bounded_Reference_Allocation_Traits_T.h')
-rw-r--r--TAO/tao/Bounded_Reference_Allocation_Traits_T.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/TAO/tao/Bounded_Reference_Allocation_Traits_T.h b/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
index 3ef2b3a26d4..f6bdbbba52c 100644
--- a/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
+++ b/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
@@ -40,6 +40,15 @@ struct bounded_reference_allocation_traits
{
value_type * buffer = new value_type[MAX];
// no throw
+ reference_traits::initialize_range(buffer, buffer + MAX);
+
+ return buffer;
+ }
+
+ inline static value_type * allocbuf_noinit(CORBA::ULong /* maximum */)
+ {
+ value_type * buffer = new value_type[MAX];
+ // no throw
reference_traits::zero_range(buffer, buffer + MAX);
return buffer;