Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[SUGGESTION] UFCS error message could be less misleading #439

Closed

Description

@realgdman
main: () = {
	vi: std::vector<int> = ();
	vi.push_back("oops");
}

Gives cpp1 diagnostic

error: use of undeclared identifier 'push_back'
CPP2_UFCS(push_back, std::move(vi), "oops");
vector.cpp2:6:2: note: in instantiation of function template specialization 'main()::(anonymous class)::operator()<std::vector, const char (&)[5]>' requested here
CPP2_UFCS(push_back, std::move(vi), "oops");

Activity

  1. realgdman commented on May 9, 2023

    @realgdman
    Author

    Thanks for research, I don't expect those with macro is easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions