Boost logo

Boost :

Subject: Re: [boost] [log] Comments
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-15 18:49:14


AMDG

Andrey Semashev wrote:
>>> Yes. attr is a formatter and a filter, for example.
>>
>> Oh, indeed! But.. why? Cannot one object serve both roles?
>
> One is filter and the other is formatter. They have different
> interfaces (with regard to the library and the user)

Are the interfaces incompatible?

> and serve different purposes (one - to compose filters, the other -
> formatters).

Why does this matter? spirit uses the same placeholders in both
qi and karma, for instance.

> Also, thread safety requirements are different.

Why? In any sane implementation that I can think of,
both attr's should store the same immutable data.

In Christ,
Steven Watanabe


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