C++ Logo


Advanced search

Re: Conditional final class-virt-specifier

From: Hyman Rosen <hyrosen_at_[hidden]>
Date: Wed, 15 Jul 2020 17:20:31 -0400
On Wed, Jul 15, 2020 at 4:35 PM Arthur O'Dwyer via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Just to drive this point home (and because I know someone else will say it
> if I don't):
> https://godbolt.org/z/hK99Gv
> The body of this function template is "syntax error syntax error" (with no
> semicolon at the end). MSVC accepts it happily, because *MSVC doesn't
> parse templates*.

It does if you invoke it correctly: <https://godbolt.org/z/Gz9eYv>

Received on 2020-07-15 16:23:59