[boost] gcc 5.1/6.0 warnings with smart_ptr