Open kanstantsin-chernik opened 4 years ago
Hi @krzysztof-jusiak. Do you have any ideas?
This is a workaround:
template<class T>
class LazyProvider {
public:
explicit LazyProvider(boost::di::extension::lazy<T >object) : object_(object) {}
LazyProvider(const LazyProvider& other) : object_(other.object_) {}
T get() const { return object_.get(); }
private:
const boost::di::extension::lazy<T> object_;
};
Expected Behavior
Expect to construct lazy objects in
tuple
Actual Behavior
Errors about not being able to construct lazy object
Steps to Reproduce the Problem
Specifications