C++ Logo

std-discussion

Advanced search

Re: Question about name lookup and class member?

From: Eric Suen <eric_suen_at_[hidden]>
Date: Mon, 7 Jun 2021 02:16:19 +0800
>
> NSDMIs are evaluated in a complete-class context. This is one reason
> they can't be `auto`.
>
How do you get complete-class context when you unable to parse

   int a = V<1>();

correctly?

Look ahead for ';' if you encounter '=' in declarator?

Received on 2021-06-06 13:16:31