aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/misc_language.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-18 01:05:58 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-04 22:38:03 +0000
commite396146aeebd61d6a26003045d554f6e94d5f028 (patch)
treed0abbc7b2feb1325435c149c9f9309063e9fc670 /contrib/epee/include/misc_language.h
parentvarious: remove unused variables (diff)
downloadmonero-e396146aeebd61d6a26003045d554f6e94d5f028.tar.xz
default initialize rpc structures
Diffstat (limited to '')
-rw-r--r--contrib/epee/include/misc_language.h5
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{} {}
+ };
+
}
}