Skip to content

Bug with template parameters expanded from a macro #5783

Description

@zajo

Type: LanguageService

First thank you for the excellent work, to my pleasant surprise Intellisense on Windows works nearly perfectly. I'm reporting an issue which isn't super important, but it is the only part of my library it has problems with.

For portability between C++11 and 17 I use a macro for deducing nontype template arguments:

template <class E, BOOST_LEAF_MATCH_ARGS(match_enum_type<E>, V1, V)>
struct is_predicate<match<E, V1, V...>>: std::true_type
{
};

Intellisense ignores the macro, reporting errors in that prat of the program, even though pointing at the macro with the mouse proves it is not confused about where and how the macro is defined.

For reference: the macro is defined here and used in several places, e.g. here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServiceVisual StudioInherited from Visual StudiobugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions