1
0
forked from Alepha/Alepha

Avoid type confusion in exceptions.

When creating these typedefs, if we use in-place
declared types, we wind up with surprising aliasing
of various types, via namespace exposure.
This commit is contained in:
2024-05-30 19:50:58 -04:00
parent f1f1a8017d
commit 9e0c714798
6 changed files with 61 additions and 35 deletions

View File

@ -16,7 +16,8 @@ namespace
namespace util= Alepha::Utility;
using namespace Alepha::Testing::exports;
using MyNotification= Alepha::create_exception< struct my_notification, Alepha::Notification >;
enum my_notification_tag {};
using MyNotification= Alepha::create_exception< my_notification_tag, Alepha::Notification >;
auto tests= Alepha::Utility::enroll <=[]
{