tested on centos with g++ 4.4, all good