| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/boostorg/python/python/test/ben_scott1.cpp | [Back] [Original] |
// Copyright David Abrahams 2004. Distributed under the Boost
// Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include
#include
using namespace boost::python;
using namespace boost;
struct Product {};
typedef shared_ptr ProductPtr;
struct Creator
{
virtual ~Creator() {}
virtual ProductPtr create() = 0;
};
struct Factory
{
void reg(Creator* c) { mC = c; }
ProductPtr create()
{
std::cout
| Web Proxy Viewer | New URL | Original Page |