Removed shared_ptr shim

Since C++17 is now the default mosh version, remove the shared_ptr
shim in favor of std::shared_ptr.
This commit is contained in:
Alex Chernyakhovsky
2023-07-30 17:20:33 -04:00
committed by Alex Chernyakhovsky
parent 2224465cc9
commit 38c84a9330
13 changed files with 65 additions and 157 deletions
+2 -2
View File
@@ -58,14 +58,14 @@ namespace Parser {
return *this;
}
Transition( ActionPointer s_action=shared::make_shared< Ignore >(), State *s_next_state=NULL )
Transition( ActionPointer s_action = std::make_shared<Ignore>(), State *s_next_state=NULL )
: action( s_action ), next_state( s_next_state )
{}
// This is only ever used in the 1-argument form;
// we use this instead of an initializer to
// tell Coverity the object never owns *action.
Transition( State *s_next_state, ActionPointer s_action=shared::make_shared< Ignore >() )
Transition( State *s_next_state, ActionPointer s_action = std::make_shared<Ignore>() )
: action( s_action ), next_state( s_next_state )
{}
};