Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 1999-12-10 00:27:43


From the vault:

 #include "boost/property_accessor.hpp"

 namespace boost {
   struct read_only_property_accessor_tag {};
   struct write_only_property_accessor_tag {}
   struct read_write_property_accessor_tag:
     read_only_property_accessor_tag,
     write_only_property_accessor_tag {};
   struct lvalue_property_accessor_tag:
     read_write_property_accessor_tag {};

   template <typename PA>
   struct property_traits {
     typedef typename PA::value_type value_type;
     typedef typename PA::category category;
   };
 }

I suggest you change read_only/write_only to readable/writable. There's a
logical contradiction in being read-only, write-only, and read/write all at
the same time.


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