fixing performance tests, mainly result of issues, and arity issues with unfused typed

[SVN r40515]
This commit is contained in:
Dan Marsden
2007-10-27 22:16:35 +00:00
parent 17e42e5650
commit 5bf6dfa508
5 changed files with 58 additions and 48 deletions

View File

@ -13,6 +13,8 @@
#include <boost/fusion/container/vector.hpp>
#include <boost/fusion/container/list.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/preprocessor/enum.hpp>
@ -59,11 +61,13 @@ namespace
{
struct poly_add
{
template<typename Sig>
struct result;
template<typename Lhs, typename Rhs>
struct result
{
typedef Lhs type;
};
struct result<poly_add(Lhs, Rhs)>
: boost::remove_reference<Lhs>
{};
template<typename Lhs, typename Rhs>
Lhs operator()(const Lhs& lhs, const Rhs& rhs) const