From 38419164b6f1ade468bf4b1d27929b3ac2503b6e Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Fri, 26 Feb 2016 14:22:11 -0500 Subject: [PATCH] optional.hpp: Allow easy access to contained type --- include/fc/optional.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fc/optional.hpp b/include/fc/optional.hpp index dfb725d..bb760a5 100644 --- a/include/fc/optional.hpp +++ b/include/fc/optional.hpp @@ -18,9 +18,11 @@ namespace fc { * fc::optional adds less than 400. */ template - class optional + class optional { public: + typedef T value_type; + optional():_valid(false){} ~optional(){ reset(); }