Fix for unexpected new base class to std::pair in VS2010. All tests now pass in VS2010
This commit is contained in:
@@ -294,8 +294,12 @@ namespace chaiscript
|
||||
{
|
||||
m->add(user_type<PairType>(), type);
|
||||
|
||||
m->add(fun(&PairType::first), "first");
|
||||
m->add(fun(&PairType::second), "second");
|
||||
|
||||
typename PairType::first_type PairType::* f = &PairType::first;
|
||||
typename PairType::second_type PairType::* s = &PairType::second;
|
||||
|
||||
m->add(fun(f), "first");
|
||||
m->add(fun(s), "second");
|
||||
|
||||
basic_constructors<PairType>(type, m);
|
||||
m->add(constructor<PairType (const typename PairType::first_type &, const typename PairType::second_type &)>(), type);
|
||||
|
Reference in New Issue
Block a user