summaryrefslogtreecommitdiff
path: root/ACE/examples/Smart_Pointers/Gadget_Factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Smart_Pointers/Gadget_Factory.cpp')
-rw-r--r--ACE/examples/Smart_Pointers/Gadget_Factory.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/ACE/examples/Smart_Pointers/Gadget_Factory.cpp b/ACE/examples/Smart_Pointers/Gadget_Factory.cpp
new file mode 100644
index 00000000000..054237169f2
--- /dev/null
+++ b/ACE/examples/Smart_Pointers/Gadget_Factory.cpp
@@ -0,0 +1,18 @@
+/* -*- C++ -*- */
+//=============================================================================
+/**
+ * @file Gadget_Factory.cpp
+ *
+ * $Id$
+ *
+ * @author Christopher Kohlhoff <chris@kohlhoff.com>
+ */
+//=============================================================================
+
+#include "Gadget_Factory.h"
+#include "Gadget_Impl.h"
+
+Gadget_var Gadget_Factory::create_gadget (void)
+{
+ return Gadget_var (new Gadget_Impl);
+}