Skip to content

Commit

Permalink
optional.hpp: Allow easy access to contained type
Browse files Browse the repository at this point in the history
  • Loading branch information
theoreticalbts committed Feb 26, 2016
1 parent 83b4de0 commit 3841916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fc/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ namespace fc {
* fc::optional adds less than 400.
*/
template<typename T>
class optional
class optional
{
public:
typedef T value_type;

optional():_valid(false){}
~optional(){ reset(); }

Expand Down

0 comments on commit 3841916

Please sign in to comment.