// // Copyright (c) 2012-2020 Kris Jusiak (kris at jusiak dot net) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include namespace di = boost::di; int main() { struct T { T(int*) {} }; // clang-format off auto injector = di::make_injector( di::bind().in(di::singleton) ); injector.create(); /** creatable constraint not satisfied **/ /** scoped::is_not_convertible_to * scoped object is not convertible to the requested type, * did you mistake the scope: 'di::bind.in(scope)'? */ // clang-format on }