|
Boost : |
Subject: Re: [boost] Boost.Convert+Boost.Parameter
From: Vladimir Batov (batov_at_[hidden])
Date: 2009-02-24 03:52:07
>> Any help? Please?
>
> I'm not sure what you're trying to accomplish here, or what error
> message you got, but your ParameterSpec very clearly says that it
> accepts only one parameter (which is required), and you're passing it
> two.
Dave,
Yes, indeed I passed only "required". The reason for that is I used Daniel's
example
BOOST_PARAMETER_NAME(value)
typedef parameters<required<tag::value> > convert_parameters;
template <class U, class T, class A0, ...>
U convert_to(T const& value, A0 const& a0, ...)
{
return convert_impl<U>(convert_parameters(value, a0, ...));
}
where he seemingly declared only "required" (value) but then packed more
(value, a0, ...). And that is as I understand what Andrey would like to have
in Boost.Convert for formatting purposes. Namely, the user creates his own
Boost.Parameter keyword and passes it to Boost.Convert. Boost.Convert
obviously does not know about that user-defined keyword but takes it in
anyway and somehow makes it available somewhere in a user-defined
Boost.Parameter-aware formatter. At least that's how I understand what
Andrey wanted.
That said, I myself won't be pursuing that issue as I know too little about
Boost.Parameter and even though I am determined to get to know and use it,
it'll be another project for another day as it'll take more than taking a
few Boost.Parameters in. I feel that is well out of the scope of
Boost.Convert in its current shape and form.
Thanks,
V.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk