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:
@ -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 <=[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user