Skip to content

Commit 778c2e4

Browse files
replacing construction of boost::optional with boost::optional< T > {} instead of none_t
1 parent 604c51e commit 778c2e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/gpcxx/canonic/algebras.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ class algebras
6868
optional_group get_group( node_type const& node ) const
6969
{
7070
auto iter = get_group_iter( node );
71-
if( iter == m_groups.end() ) return boost::none_t {} ;
71+
if( iter == m_groups.end() ) return optional_group {};
7272
else return optional_group { *iter };
7373
}
7474

7575
optional_group get_group_from_inverse_operation( node_type const& node ) const
7676
{
7777
auto iter = get_group_from_inverse_operation_iter( node );
78-
if( iter == m_groups.end() ) return boost::none_t {} ;
78+
if( iter == m_groups.end() ) return optional_group {};
7979
else return optional_group { *iter };
8080
}
8181

8282
optional_group get_group_from_inverse_function( node_type const& node ) const
8383
{
8484
auto iter = get_group_from_inverse_function_iter( node );
85-
if( iter == m_groups.end() ) return boost::none_t {} ;
85+
if( iter == m_groups.end() ) return optional_group {};
8686
else return optional_group { *iter };
8787
}
8888

0 commit comments

Comments
 (0)