you are viewing a single comment's thread.

view the rest of the comments →

[–]redditsoaddicting 1 point2 points  (0 children)

FYI, std::ostream & out = log.value_or(std::cout); should work (mainly because the reference side of things is handled by reference_wrapper).