Boost logo

Boost :

Subject: Re: [boost] Looking for a name for a Subjet-Entity-Role library
From: joaquin_at_[hidden]
Date: 2009-10-05 06:29:40


Joachim Faulhaber escribió:
> 2009/10/5 Vicente Botet Escriba <vicente.botet_at_[hidden]>:
>
>> If the namespace is role, and as I have a role class, is
>> the following readable
>>
>> class Employee: public boost::role::role<Employee, PersonRole>?
>>
>>
>
> Smart as you are you found a tiny drawback of the name.
> Well yes, readability suffers a little bit. But this is the *only*
> class name that is affected by this repetition effect.
> I could easily live with that...
>
> ... or you choose ...
>
> Boost.Roles
>
> The Boost *R*ole *O*bject *L*ibrari*es*
>
> Ha!
>
> class Employee: public boost::roles::role<Employee, PersonRole>
>

According to Boost naming guidelines, the natural choice would be Boost.Role
for the lib name and boost::roles as the associated namespace. That is, the
suffixed s only goes to the namespace, not the lib name:

http://www.boost.org/development/requirements.html#Naming_consistency

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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