C++ Logo

std-proposals

Advanced search

Re: Allow virtual base classes in constexpr

From: Lyberta <lyberta_at_[hidden]>
Date: Sat, 01 Jun 2019 03:49:00 +0000
Jake Arkinstall via Std-Proposals:
> Immediate thought: this doesn't make sense to me. Can you provide a more
> detailed description of your particular use case?

It's simple really. In case of standard library there is std::ios then
virtual inheritance by std::ostream and then regular inheritance by
std::ostringstream.

So client code takes reference to std::ostream and prints to it. My
library works the same way.


Received on 2019-05-31 22:51:03