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() 18