Use shared_ptr if possible regardless of C++11 support
Merge pull request #147 from TsudaKageyu/shared_ptr

Use shared_ptr if possible regardless of C++11 support