...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::attributes::cast_source
// In header: <boost/log/attributes/attribute_cast.hpp> class cast_source { public: // construct/copy/destruct explicit cast_source(attribute::impl *); // public member functions template<typename T> T * as() const; };
The class holds a reference to the attribute factory implementation being casted
cast_source
public
construct/copy/destructexplicit cast_source(attribute::impl * p);
Initializing constructor. Creates a source that refers to the specified factory implementation.