Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/test/ben_scott1.py @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

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.