Changed optional::value_or() to optional::get_value_or()

get_value_or() is considered deprecated, but still works in the newest
boost (1.63). On the other hand, value_or() is not available in some
versions that are still used by major distros.
This commit is contained in:
Maciej Suminski 2017-02-24 17:34:23 +01:00
parent e34b73e187
commit adba96fd2b
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ void TOOL_MANAGER::dispatchContextMenu( const TOOL_EVENT& aEvent )
if( activeTool == GetCurrentToolId() )
{
m_viewControls->ForceCursorPosition( (bool) m_origCursor,
m_origCursor.value_or( VECTOR2D( 0, 0 ) ) );
m_origCursor.get_value_or( VECTOR2D( 0, 0 ) ) );
}
m_origCursor = boost::none;