Changeset a1c35cc in mainline for uspace/lib/cpp/include/internal/locale.hpp
- Timestamp:
- 2018-07-05T21:41:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4fba7ad
- Parents:
- 349b0f7
- git-author:
- Dzejrou <dzejrou@…> (2018-05-14 18:08:11)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/locale.hpp
r349b0f7 ra1c35cc 35 35 { 36 36 class locale; 37 38 template<class Facet>39 const Facet& use_facet(const locale& loc);40 41 template<class Facet>42 bool has_facet(const locale& loc);43 37 44 38 /** … … 152 146 153 147 template<class Facet> 154 friend const Facet& use_facet(const locale&); 148 /* friend const Facet& use_facet(const locale&); */ 149 friend Facet use_facet(const locale&); 155 150 156 151 template<class Facet> 157 const Facet& get_() const 152 /* const Facet& get_() const */ 153 Facet get_() const 158 154 { 159 // TODO: A VERY ugly hack, when we have map/shared ptr, 160 // we should implement facets and store them in a map 161 // and return them here by their IDs. 162 return *(new Facet{0u}); 155 return Facet{0U}; 163 156 } 164 157 }; 165 158 166 159 template<class Facet> 167 const Facet& use_facet(const locale& loc) 160 /* const Facet& use_facet(const locale& loc) */ 161 Facet use_facet(const locale& loc) 168 162 { 169 163 return loc.get_<Facet>();
Note:
See TracChangeset
for help on using the changeset viewer.