
15 Jan
2025
15 Jan
'25
8:03 p.m.
Matt Borland wrote:
namespace boost { namespace decimal {
// Paragraph numbers are from ISO/IEC DTR 24733
// 3.2.2.1 construct/copy/destroy constexpr decimal32() noexcept = default;
This doesn't compile. "class decimal32 {" is missing.
It was previously described here: https://cppalliance.org/decimal/decimal.html#generic_decimal_ so I did not duplicate anything from that block.
It doesn't compile. The synopsis must be valid C++. Just because you have a forward declaration class decimal32; doesn't mean that you can just start writing member declarations directly in the namespace and expect anything to compile or make sense.