|
Boost Users : |
Subject: Re: [Boost-users] [fusion] probably a bug in result_of::join
From: jl (jl_at_[hidden])
Date: 2009-10-14 10:35:22
Christopher Schmidt writes:
> Yeah, this is a major issue of the current fusion implementation. The
> result_of::-metafunctions do not regard that the actual functions take
> const-qualified arguments only. On top of that the documentation is
> outdated and misleading.
Well you could make functions, metafunctions and doc agree like this:
namespace result_of
{
template<typename LhSequence, typename RhSequence>
struct join
{
typedef joint_view<
typename add_const<LhSequence>::type,
typename add_const<RhSequence>::type
> type;
};
}
> My C++0x port of fusion introduces non-const arguments for the algorithm
> functions and a new result_of::-concept which allows passing (optionally)
> cv and ref qualified types.
Do you plan to support that in the version for the "old" compilers as well?
J-L
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net