fixed for msvc + gcc (all regresions ok)

[SVN r35271]
This commit is contained in:
Joel de Guzman
2006-09-22 06:31:17 +00:00
parent 46134407cf
commit da23c8a4cc
3 changed files with 4 additions and 6 deletions

View File

@@ -37,8 +37,7 @@ namespace boost { namespace fusion
deref(Iterator const& i)
{
typedef result_of::deref<Iterator> deref_meta;
typename deref_meta::type result(deref_meta::call(i));
return result;
return deref_meta::call(i);
}
template <typename Iterator>

View File

@@ -56,8 +56,7 @@ namespace boost { namespace fusion { namespace distance_detail
static type
call(First const&, Last const&)
{
static type result;
return result;
return type();
}
};