13 Nov
2018
13 Nov
'18
5:14 p.m.
Hello, I am looking into deriving from boost::optional and adding lazy initialization capability. I can arrange a constructor, or whatever, to inject an appropriate factory method, functional callback, etc, that's no problem.
From the boost::optional perspective, I'd like to override a key method (or methods, hopefully not too many) in order to inject that factory provided value. I'm thinking optional::get?
Unless there's a better override for that? Cheers, Michael Powell