@@ -741,7 +741,7 @@ void Xdr::do_write(std::vector<std::complex<T>> & a)
741741
742742
743743template < typename T >
744- void Xdr ::data (T & a , const char * comment_in )
744+ void Xdr ::data (T & a , std :: string_view comment_in )
745745{
746746 switch (mode )
747747 {
@@ -790,7 +790,7 @@ void Xdr::data (T & a, const char * comment_in)
790790
791791 // If there's a comment provided, write a tab character and
792792 // then the comment.
793- if (std :: string ( comment_in ) != "" )
793+ if (comment_in != "" )
794794 * out << "\t " << comment_in ;
795795
796796 // Go to the next line.
@@ -1297,42 +1297,42 @@ void Xdr::comment (std::string & comment_in)
12971297
12981298
12991299//
1300- template LIBMESH_EXPORT void Xdr ::data < int > (int & , const char * );
1301- template LIBMESH_EXPORT void Xdr ::data < unsigned int > (unsigned int & , const char * );
1302- template LIBMESH_EXPORT void Xdr ::data < unsigned short int > (unsigned short int & , const char * );
1303- template LIBMESH_EXPORT void Xdr ::data < short int > (short int & , const char * );
1304- template LIBMESH_EXPORT void Xdr ::data < unsigned long int > (unsigned long int & , const char * );
1305- template LIBMESH_EXPORT void Xdr ::data < unsigned long long > (unsigned long long & , const char * );
1306- template LIBMESH_EXPORT void Xdr ::data < long int > (long int & , const char * );
1307- template LIBMESH_EXPORT void Xdr ::data < long long> (long long & , const char * );
1308- template LIBMESH_EXPORT void Xdr ::data < char > (char & , const char * );
1309- template LIBMESH_EXPORT void Xdr ::data < signed char > (signed char & , const char * );
1310- template LIBMESH_EXPORT void Xdr ::data < unsigned char > (unsigned char & , const char * );
1311- template LIBMESH_EXPORT void Xdr ::data < float > (float & , const char * );
1312- template LIBMESH_EXPORT void Xdr ::data < double > (double & , const char * );
1313- template LIBMESH_EXPORT void Xdr ::data < long double > (long double & , const char * );
1314- template LIBMESH_EXPORT void Xdr ::data < std ::complex < float >> (std ::complex < float > & , const char * );
1315- template LIBMESH_EXPORT void Xdr ::data < std ::complex < double >> (std ::complex < double > & , const char * );
1316- template LIBMESH_EXPORT void Xdr ::data < std ::complex < long double >> (std ::complex < long double > & , const char * );
1317- template LIBMESH_EXPORT void Xdr ::data < std ::string > (std ::string & , const char * );
1318- template LIBMESH_EXPORT void Xdr ::data < std ::vector < int >> (std ::vector < int > & , const char * );
1319- template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned int >> (std ::vector < unsigned int > & , const char * );
1320- template LIBMESH_EXPORT void Xdr ::data < std ::vector < short int >> (std ::vector < short int > & , const char * );
1321- template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned short int >> (std ::vector < unsigned short int > & , const char * );
1322- template LIBMESH_EXPORT void Xdr ::data < std ::vector < long int >> (std ::vector < long int > & , const char * );
1323- template LIBMESH_EXPORT void Xdr ::data < std ::vector < long long>> (std ::vector < long long > & , const char * );
1324- template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned long int >> (std ::vector < unsigned long int > & , const char * );
1325- template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned long long >> (std ::vector < unsigned long long> & , const char * );
1326- template LIBMESH_EXPORT void Xdr ::data < std ::vector < char >> (std ::vector < char > & , const char * );
1327- template LIBMESH_EXPORT void Xdr ::data < std ::vector < signed char >> (std ::vector < signed char > & , const char * );
1328- template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned char >> (std ::vector < unsigned char > & , const char * );
1329- template LIBMESH_EXPORT void Xdr ::data < std ::vector < float >> (std ::vector < float > & , const char * );
1330- template LIBMESH_EXPORT void Xdr ::data < std ::vector < double >> (std ::vector < double > & , const char * );
1331- template LIBMESH_EXPORT void Xdr ::data < std ::vector < long double >> (std ::vector < long double > & , const char * );
1332- template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < float >>> (std ::vector < std ::complex < float >> & , const char * );
1333- template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < double >>> (std ::vector < std ::complex < double >> & , const char * );
1334- template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < long double >>> (std ::vector < std ::complex < long double >> & , const char * );
1335- template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::string >> (std ::vector < std ::string > & , const char * );
1300+ template LIBMESH_EXPORT void Xdr ::data < int > (int & , std :: string_view );
1301+ template LIBMESH_EXPORT void Xdr ::data < unsigned int > (unsigned int & , std :: string_view );
1302+ template LIBMESH_EXPORT void Xdr ::data < unsigned short int > (unsigned short int & , std :: string_view );
1303+ template LIBMESH_EXPORT void Xdr ::data < short int > (short int & , std :: string_view );
1304+ template LIBMESH_EXPORT void Xdr ::data < unsigned long int > (unsigned long int & , std :: string_view );
1305+ template LIBMESH_EXPORT void Xdr ::data < unsigned long long > (unsigned long long & , std :: string_view );
1306+ template LIBMESH_EXPORT void Xdr ::data < long int > (long int & , std :: string_view );
1307+ template LIBMESH_EXPORT void Xdr ::data < long long> (long long & , std :: string_view );
1308+ template LIBMESH_EXPORT void Xdr ::data < char > (char & , std :: string_view );
1309+ template LIBMESH_EXPORT void Xdr ::data < signed char > (signed char & , std :: string_view );
1310+ template LIBMESH_EXPORT void Xdr ::data < unsigned char > (unsigned char & , std :: string_view );
1311+ template LIBMESH_EXPORT void Xdr ::data < float > (float & , std :: string_view );
1312+ template LIBMESH_EXPORT void Xdr ::data < double > (double & , std :: string_view );
1313+ template LIBMESH_EXPORT void Xdr ::data < long double > (long double & , std :: string_view );
1314+ template LIBMESH_EXPORT void Xdr ::data < std ::complex < float >> (std ::complex < float > & , std :: string_view );
1315+ template LIBMESH_EXPORT void Xdr ::data < std ::complex < double >> (std ::complex < double > & , std :: string_view );
1316+ template LIBMESH_EXPORT void Xdr ::data < std ::complex < long double >> (std ::complex < long double > & , std :: string_view );
1317+ template LIBMESH_EXPORT void Xdr ::data < std ::string > (std ::string & , std :: string_view );
1318+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < int >> (std ::vector < int > & , std :: string_view );
1319+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned int >> (std ::vector < unsigned int > & , std :: string_view );
1320+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < short int >> (std ::vector < short int > & , std :: string_view );
1321+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned short int >> (std ::vector < unsigned short int > & , std :: string_view );
1322+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < long int >> (std ::vector < long int > & , std :: string_view );
1323+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < long long>> (std ::vector < long long > & , std :: string_view );
1324+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned long int >> (std ::vector < unsigned long int > & , std :: string_view );
1325+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned long long >> (std ::vector < unsigned long long> & , std :: string_view );
1326+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < char >> (std ::vector < char > & , std :: string_view );
1327+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < signed char >> (std ::vector < signed char > & , std :: string_view );
1328+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < unsigned char >> (std ::vector < unsigned char > & , std :: string_view );
1329+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < float >> (std ::vector < float > & , std :: string_view );
1330+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < double >> (std ::vector < double > & , std :: string_view );
1331+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < long double >> (std ::vector < long double > & , std :: string_view );
1332+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < float >>> (std ::vector < std ::complex < float >> & , std :: string_view );
1333+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < double >>> (std ::vector < std ::complex < double >> & , std :: string_view );
1334+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < long double >>> (std ::vector < std ::complex < long double >> & , std :: string_view );
1335+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::string >> (std ::vector < std ::string > & , std :: string_view );
13361336template LIBMESH_EXPORT void Xdr ::data_stream < unsigned char > (unsigned char * val , const unsigned int len , const unsigned int line_break );
13371337template LIBMESH_EXPORT void Xdr ::data_stream < short int > (short int * val , const unsigned int len , const unsigned int line_break );
13381338template LIBMESH_EXPORT void Xdr ::data_stream < int > (int * val , const unsigned int len , const unsigned int line_break );
@@ -1343,10 +1343,10 @@ template LIBMESH_EXPORT void Xdr::data_stream<unsigned long int> (unsigned long
13431343template LIBMESH_EXPORT void Xdr ::data_stream < unsigned long long > (unsigned long long * val , const unsigned int len , const unsigned int line_break );
13441344
13451345#ifdef LIBMESH_DEFAULT_QUADRUPLE_PRECISION
1346- template LIBMESH_EXPORT void Xdr ::data < Real > (Real & , const char * );
1347- template LIBMESH_EXPORT void Xdr ::data < std ::complex < Real >> (std ::complex < Real > & , const char * );
1348- template LIBMESH_EXPORT void Xdr ::data < std ::vector < Real >> (std ::vector < Real > & , const char * );
1349- template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < Real >>> (std ::vector < std ::complex < Real >> & , const char * );
1346+ template LIBMESH_EXPORT void Xdr ::data < Real > (Real & , std :: string_view );
1347+ template LIBMESH_EXPORT void Xdr ::data < std ::complex < Real >> (std ::complex < Real > & , std :: string_view );
1348+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < Real >> (std ::vector < Real > & , std :: string_view );
1349+ template LIBMESH_EXPORT void Xdr ::data < std ::vector < std ::complex < Real >>> (std ::vector < std ::complex < Real >> & , std :: string_view );
13501350#endif
13511351
13521352} // namespace libMesh
0 commit comments