2 Jul 2009 17:45
Re: [convert] Now with Boost.Parameter interface.
Scott McMurray <me22.ca+boost <at> gmail.com>
2009-07-02 15:45:12 GMT
2009-07-02 15:45:12 GMT
2009/7/2 Stewart, Robert <Robert.Stewart <at> sig.com>: > > Why not with the syntax Dave has been suggesting: > > converter<int>(locale_ = loc, throw_ = true).from(str, 0); > To me, that's the nicest one yet proposed. And it'd be quite reasonable, instead of statics, to just use convert<int>().from(str, 0), since that's already common from function objects. And actually, why not spell from() as operator(), so it can be a proper function object? transform( istream_iterator<string>(cin), istream_iterator<string>(), back_inserter(v), convert<int>(locale_ = loc, base_ = 16, throw_ = false, default_ = 0)); _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
RSS Feed