Skip to content

Commit

Permalink
replacing construction of boost::optional with boost::optional< T > {…
Browse files Browse the repository at this point in the history
…} instead of none_t
  • Loading branch information
headmyshoulder committed Jan 4, 2016
1 parent 604c51e commit 778c2e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gpcxx/canonic/algebras.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ class algebras
optional_group get_group( node_type const& node ) const
{
auto iter = get_group_iter( node );
if( iter == m_groups.end() ) return boost::none_t {} ;
if( iter == m_groups.end() ) return optional_group {};
else return optional_group { *iter };
}

optional_group get_group_from_inverse_operation( node_type const& node ) const
{
auto iter = get_group_from_inverse_operation_iter( node );
if( iter == m_groups.end() ) return boost::none_t {} ;
if( iter == m_groups.end() ) return optional_group {};
else return optional_group { *iter };
}

optional_group get_group_from_inverse_function( node_type const& node ) const
{
auto iter = get_group_from_inverse_function_iter( node );
if( iter == m_groups.end() ) return boost::none_t {} ;
if( iter == m_groups.end() ) return optional_group {};
else return optional_group { *iter };
}

Expand Down

0 comments on commit 778c2e4

Please sign in to comment.