
Joachim Faulhaber escribió:
2009/10/5 Vicente Botet Escriba <vicente.botet@wanadoo.fr>:
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