Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with msvc failed but with gcc succeeded. #82

Open
VirgilMa opened this issue Nov 4, 2024 · 0 comments
Open

Compiling with msvc failed but with gcc succeeded. #82

VirgilMa opened this issue Nov 4, 2024 · 0 comments

Comments

@VirgilMa
Copy link

VirgilMa commented Nov 4, 2024

code is here.

class Val : public mpark::variant<bool, int, double, std::string, void*> {
public:
    using mpark::variant<bool, int, double, std::string, void*>::variant;
};

int main() {
    Val val;
    val = true;
    return 0;
}

Thank you so much for your time.

@VirgilMa VirgilMa changed the title msvc compiles failed but gcc succeeds. compiling with msvc failed but with gcc succeeded. Nov 4, 2024
@VirgilMa VirgilMa changed the title compiling with msvc failed but with gcc succeeded. Compiling with msvc failed but with gcc succeeded. Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant