Ticket #12352: boost_factory_bug.cpp

File boost_factory_bug.cpp, 230 bytes (added by Matthew Hoops <matthewthoops@…>, 6 years ago)

Minimal test case program

Line 
1#include <boost/function.hpp>
2#include <boost/functional/factory.hpp>
3
4class TestClass {
5public:
6 TestClass(int someParam) {}
7};
8
9int main() {
10 boost::function<TestClass*(int testParam)> factory = boost::factory<TestClass*>();
11}
12