|
Boost : |
From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2005-10-02 12:10:41
"Joel de Guzman" <joel_at_[hidden]> wrote
> Arkadiy Vertleyb wrote:
> > Is it alive?
> >
> > My posts keep disappearing, and I dont see any other new messages...
>
> Sometimes we just have to wait. Yeah, I posted one too and
> I've been waiting for a few hours now.
I see.
> You can email me
> if it's a quickbook related question.
Actually I am not sure if it's quickbook, boostbook, or build... I am
having a number of problem trying to setup the typeod documentation build.
One of them -- I am able to build the docs from the typeof doc directory,
but these docs turned out somewhat garbled in many places, for example:
**********
namespace ex2
{
template<class T, class U>
BOOST_TYPEOF_TPL(T() + U()) add(const T& t, const U& u)
{
return t + u;
};
typedef BOOST_TYPEOF(add('a', 1.5)) type;
BOOST_STATIC_ASSERT((is_same<type, double>::value));
}
Using <
^^^^^^^
**********
Here is the related fragment from the qbk file
(http://cvs.sourceforge.net/viewcvs.py/boost/boost/libs/typeof/doc/typeof.qb
k?view=markup):
**********
In the dependent context use `BOOST_TYPEOF_TPL` instead of `BOOST_TYPEOF`:
namespace ex2
{
template<class T, class U>
BOOST_TYPEOF_TPL(T() + U()) add(const T& t, const U& u)
{
return t + u;
};
typedef BOOST_TYPEOF(add('a', 1.5)) type;
BOOST_STATIC_ASSERT((is_same<type, double>::value));
}
The above examples are possible because the Typeof Library knows about
**********
Regards,
Arkadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk