Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/python/test/ben_scott1.py @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 555 bytes
Line 
1# Copyright David Abrahams 2004. Distributed under the Boost
2# Software License, Version 1.0. (See accompanying
3# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4# This regression test checks that call_method<T>(...) where T is a
5# non-reference, non-pointer type that happens to be held inside the
6# result object (and thus is found as an lvalue) works.
7from ben_scott1_ext import *
8
9class CreatorImpl(Creator):
10   def create(self):
11      return Product()
12
13factory = Factory()
14c = CreatorImpl()
15factory.reg(c)
16
17a = factory.create()
Note: See TracBrowser for help on using the repository browser.