Use a const reference in is_convertible()

This commit is contained in:
Benoit Blanchon
2024-09-21 09:22:12 +02:00
parent cd4b2b2463
commit 48ee4a178b
3 changed files with 57 additions and 1 deletions
@@ -27,7 +27,7 @@ struct is_convertible {
static int probe(To);
static char probe(...);
static From& from_;
static const From& from_;
public:
static const bool value = sizeof(probe(from_)) == sizeof(int);