boostorg / boostorg/variant

Surprising behavior of variant with is_constructible, is_assignable and is_convertible traits

Open
#102 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
47
Forks
71
PR merge metrics
No merged PRs in 30d

Description

is_constructible, is_assignable and is_convertible return surprising result under some conditions, suggesting that a variant might be "compatible" with a certain type, while it is, in fact, not.

See https://godbolt.org/z/zzG8WaKP8 for a minimal example.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.