mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Merge pull request #867 from nasa/remove-deprecated-code-#864
#864 remove ptr_fun missed one file
This commit is contained in:
commit
93a83d6ce1
@ -32,7 +32,7 @@ int checkpoint_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name
|
||||
|
||||
FIRST * first = nullptr ;
|
||||
SECOND * second = nullptr ;
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
|
||||
std::string type_string ;
|
||||
try {
|
||||
@ -78,7 +78,7 @@ int checkpoint_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name
|
||||
|
||||
FIRST * first = nullptr ;
|
||||
std::string * second = nullptr ;
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
std::string type_string;
|
||||
try {
|
||||
type_string = stl_type_name_convert(abi::__cxa_demangle(typeid(*first).name(), 0, 0, &status )) ;
|
||||
@ -117,7 +117,7 @@ int checkpoint_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name
|
||||
|
||||
std::string * first = nullptr ;
|
||||
SECOND * second = nullptr ;
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
|
||||
var_declare << "std::string "
|
||||
<< object_name << "_" << var_name << "_first[1]" ;
|
||||
@ -152,7 +152,7 @@ int checkpoint_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name
|
||||
|
||||
std::string * first = nullptr ;
|
||||
std::string * second = nullptr ;
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
|
||||
var_declare << "std::string "
|
||||
<< object_name << "_" << var_name << "_first[1]" ;
|
||||
@ -175,7 +175,7 @@ int checkpoint_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name
|
||||
|
||||
template <class FIRST, class SECOND>
|
||||
int delete_stl(std::pair<FIRST, SECOND> & in_stl __attribute__ ((unused)) , std::string object_name , std::string var_name ) {
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
REF2 * items_ref ;
|
||||
items_ref = ref_attributes((char *)(object_name + "_" + var_name + "_first").c_str()) ;
|
||||
if ( items_ref != NULL ) {
|
||||
@ -198,7 +198,7 @@ int restore_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name ,
|
||||
|
||||
FIRST * first ;
|
||||
SECOND * second ;
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
||||
|
||||
first_ref = ref_attributes((char *)(object_name + "_" + var_name + "_first").c_str()) ;
|
||||
@ -228,7 +228,7 @@ int restore_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name ,
|
||||
FIRST * first ;
|
||||
std::string * second ;
|
||||
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
||||
|
||||
first_ref = ref_attributes((char *)(object_name + "_" + var_name + "_first").c_str()) ;
|
||||
@ -258,7 +258,7 @@ int restore_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name ,
|
||||
std::string * first ;
|
||||
SECOND * second ;
|
||||
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
||||
|
||||
first_ref = ref_attributes((char *)(object_name + "_" + var_name + "_first").c_str()) ;
|
||||
@ -287,7 +287,7 @@ int restore_stl(std::pair<FIRST , SECOND> & in_pair , std::string object_name ,
|
||||
std::string * first ;
|
||||
std::string * second ;
|
||||
|
||||
std::replace_if(object_name.begin(), object_name.end(), std::ptr_fun<int,int>(&std::ispunct), '_');
|
||||
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
||||
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
||||
|
||||
first_ref = ref_attributes((char *)(object_name + "_" + var_name + "_first").c_str()) ;
|
||||
|
Loading…
Reference in New Issue
Block a user