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

@ -15,7 +15,8 @@ namespace Alepha::Hydrogen ::detail:: Thread_m
{
inline namespace exports
{
using CrossThreadNotificationRethrowError= synthetic_exception< struct cross_thread_notification_failure, Error >;
enum CrossThread_tag {};
using CrossThreadNotificationRethrowError= synthetic_exception< CrossThread_tag, Error >;
namespace this_thread
{
//void sleep( std::chrono::duration );