Open erlingrj opened 10 months ago
Which compiler are you using, and what is its version?
I am using cmake 3.25.2 and g++ 9.4.0
Your compiler might be too old... This seems to be an issue with the C++ standard. The rules regarding noexcept
on the constructor initially were relatively strict, but then they have been relaxed in subsequent releases of the standard. So technically, the generated code is correct, but an old compiler might disagree... Could you try with a newer compiler version?
This program:
Fails to compile with nightly compiler. The error given is:
I am able to get around the error by removing the
noexcept
annotations on the Multiport constructor. But I don't exactly understand why.