![]() |
От: | nen777w | |
Дата: | 17.08.11 23:14 | ||
Оценка: |
Ops>Building the library
Ops>By default, the Boost build system creates libraries that support both version 2 and version 3. To support only a single version, include --disable-filesystem2 or --disable-filesystem3 on the bjam command line.
Ops>http://www.boost.org/doc/libs/1_47_0/libs/filesystem/v3/doc/index.htmOps>Existing code should be moved to Version 3 as soon as convenient. New code should be written for Version 3.
Ops>Version 2 is deprecated, and will not be included in Boost releases 1.48 and later.
#include <vector>
#include "boost/filesystem.hpp"
#include "boost/phoenix.hpp"
void foo()
{
using boost::phoenix::lambda;
using boost::phoenix::placeholders::_1;
std::vector<boost::filesystem::path::string_type> v;
v.push_back("boost");
v.push_back("0");
v.push_back("boost");
v.push_back("3");
std::for_each(v.begin(), v.end()
, lambda[
if_( "boost" == _1)
[
_1 = "tsoob"
]
] ()
);
}