You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Duplicate type" is a very inconvenient error as it will make some simple test cases require a lot of boilerplate code to circumvent this compile-time check. The thing is that certain types may or may not be synonymous depending on the current platform, and when writing cross-platform code, one may just want to list all imaginable types. Sure, the test case may run twice for the same actual type, but so what?
Example: size_t may be a synonym for unsigned long - then size_t is incompatible with unsigned long long, or it could be vice versa. I wanted to simply list all three (size_t, unsigned long, unsigned long long) and I got this compilation error.
The text was updated successfully, but these errors were encountered:
It was used in checking that types in TEMPLATE_TEST_CASE and friends
were unique, but this was removed for v2.8.0 (#1628). Since there
are no further uses of this trait, the simplest thing to do is to
just remove it.
Fixes#1757
"Duplicate type" is a very inconvenient error as it will make some simple test cases require a lot of boilerplate code to circumvent this compile-time check. The thing is that certain types may or may not be synonymous depending on the current platform, and when writing cross-platform code, one may just want to list all imaginable types. Sure, the test case may run twice for the same actual type, but so what?
Example:
size_t
may be a synonym forunsigned long
- thensize_t
is incompatible withunsigned long long
, or it could be vice versa. I wanted to simply list all three (size_t, unsigned long, unsigned long long
) and I got this compilation error.The text was updated successfully, but these errors were encountered: