#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_object.hpp>
#include <algorithm>
#include <vector>
#include <iostream>
using namespace boost::phoenix;
using namespace boost::phoenix::arg_names;
class A
{
public:
~A() { std::cout << "A deleted\n"; }
};
int main()
{
std::vector vec;
vec.push_back(new A);
vec.push_back(new A);
std::for_each (vec.begin(), vec.end(), delete_ (arg1));
}
Tuesday, February 9, 2010
Friday, January 29, 2010
git cloning of svn repository's subdirectory
If you are interested in following a subdirectory of some svn repository, but do not want git to be bothered about previous history:
git svn clone -r HEAD --no-minimize-url url-goes-here
You can update to latest version of upstream (svn) repo
git svn rebase
Probably you do not want to mess with this branch, so check-out another branch to do your stuff and merge in local master later.
git checkout -b local_stuff
Subscribe to:
Posts (Atom)