scoped injector only in c++11