boost::make_shared takes const ref, need to wrap non-const ref in boost::ref
Merge pull request #4 from amidvidy/master

fix compile error due to boost::make_shared