//b_facet.h
class base_facet : public locale::facet { public: static locale::id& GetFacetLocaleId(); // in place of static locale::id id; };
In the source file define the method GetFacetLocaleId().
//b_facet.cpp locale::id base_facet_id; locale::id& base_facet::GetFacetLocaleId() { return base_facet_id; }
© 2006-2007 Nokia |
|