22 Nov 00:20
Re: std::vector and default constructor
Andrew Sutton <andrew.n.sutton <at> gmail.com>
2008-11-21 23:20:23 GMT
2008-11-21 23:20:23 GMT
what about if I have more than one memory mapped file and multiple such vectors in separate memory mapped io areas?
I think the method you're suggesting uses global variables, doesn't it
new T(make_func())
This also won't result in the copy that it might seem to require. Most (all?) compilers will optimize it out.
Andrew Sutton
andrew.n.sutton <at> gmail.com
_______________________________________________ Boost-users mailing list Boost-users <at> lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
RSS Feed