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. |
---|
7 | from ben_scott1_ext import * |
---|
8 | |
---|
9 | class CreatorImpl(Creator): |
---|
10 | def create(self): |
---|
11 | return Product() |
---|
12 | |
---|
13 | factory = Factory() |
---|
14 | c = CreatorImpl() |
---|
15 | factory.reg(c) |
---|
16 | |
---|
17 | a = factory.create() |
---|
Note: See
TracBrowser
for help on using the repository browser.