summaryrefslogtreecommitdiff
path: root/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/DevGuideExamples/ValueTypes/Bank/server.cpp')
-rw-r--r--TAO/DevGuideExamples/ValueTypes/Bank/server.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp b/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
index 5eb0169c880..ca6f1e731a7 100644
--- a/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
+++ b/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
@@ -44,6 +44,17 @@ class Person_i
, public virtual CORBA::DefaultValueRefCountBase
{
public:
+ ::CORBA::ValueBase *_copy_value ()
+ {
+ ::CORBA::ValueBase *ret_val = 0;
+ ACE_NEW_THROW_EX (
+ ret_val,
+ Person_i (),
+ ::CORBA::NO_MEMORY ()
+ );
+ return ret_val;
+ }
+
void debit(CORBA::Long amt)
{
CORBA::Long tmp = balance();