Boost logo

Boost :

Subject: Re: [boost] [random] new documentation
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2010-02-22 11:44:47


Joachim Faulhaber wrote:
> 2010/2/22 Steven Watanabe <watanabesj_at_[hidden]>
>>
>> I have the same problem in my reference section. E.g.
> http://www.herold-faulhaber.de/boost_itl/doc/libs/itl/doc/html/boost/itl/interval_map.html
>
> If someone knew a trick for a better formatting result, I'd be very
> interested.

Indenting source code itself usually helps:

template
    <
        typename DomainT, typename CodomainT,
        class Traits = itl::partial_absorber,
        ITL_COMPARE Compare = ITL_COMPARE_INSTANCE(std::less, DomainT),
        ITL_COMBINE Combine = ITL_COMBINE_INSTANCE(itl::inplace_plus,
CodomainT),
        ITL_SECTION Section = ITL_SECTION_INSTANCE(itl::inplace_et,
CodomainT),
        template<class, ITL_COMPARE> class Interval = itl::interval,
        ITL_ALLOC Alloc = std::allocator
>
class interval_map : public boost::itl::interval_base_map
    <
        boost::itl::interval_map
        <
            DomainT,
            CodomainT,
            Traits,
            Compare,
            Combine,
            Section,
            Interval,
            Alloc
>,
        DomainT,
        CodomainT,
        Traits,
        Compare,
        Combine,
        Section,
        Interval,
        Alloc
>
{
...
};

Best regards,

-- 
Mateusz Loskot
http://mateusz.loskot.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk