diff options
Diffstat (limited to 'contrib/epee/include/misc_language.h')
-rw-r--r-- | contrib/epee/include/misc_language.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h index 7e4eb337d..5f7202150 100644 --- a/contrib/epee/include/misc_language.h +++ b/contrib/epee/include/misc_language.h @@ -159,5 +159,10 @@ namespace misc_utils return slc; } + template<typename T> struct struct_init: T + { + struct_init(): T{} {} + }; + } } |