November 12, 2009 winstl::filesystem_traits | ||||
---|---|---|---|---|
| ||||
Hi, I've recentely tried using winstl::filesystem_traits<char> to delete and rename some files, and it's very cool. However, I was surprised that it only accepts char_type const* argument, and not e.g. std::string or even better winstl::path. STLSoft's conversion abilities (shims?) are well documented. Is there a reason they are not applied here? Thanks, Adi |
November 26, 2009 Re: winstl::filesystem_traits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adi Shavit | "Adi Shavit" <adishavit_thisdoesnotbelonghere_@gmail.com> wrote in message news:hdh29g$1bmc$1@digitalmars.com... > Hi, > > I've recentely tried using winstl::filesystem_traits<char> to delete and rename some files, and it's very cool. > However, I was surprised that it only accepts char_type const* argument, and not e.g. std::string or even better winstl::path. > STLSoft's conversion abilities (shims?) are well documented. Is there a reason they are not applied here? As always, a high priority is given to (avoiding) coupling. But let me consider whether we can make the improvements you suggest without damaging modularity overly. (Remind me about this if you hear nothing before the new year.) Matt |
Copyright © 1999-2021 by the D Language Foundation