[pypy-commit] pypy default: from Ryan, Tobias: C++ language fixes for clang

wlav pypy.commits at gmail.com
Tue Jan 17 19:33:29 EST 2017


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: 
Changeset: r89648:4baf1af96226
Date: 2017-01-17 16:23 -0800
http://bitbucket.org/pypy/pypy/changeset/4baf1af96226/

Log:	from Ryan, Tobias: C++ language fixes for clang

diff --git a/pypy/module/cppyy/src/clingcwrapper.cxx b/pypy/module/cppyy/src/clingcwrapper.cxx
--- a/pypy/module/cppyy/src/clingcwrapper.cxx
+++ b/pypy/module/cppyy/src/clingcwrapper.cxx
@@ -522,7 +522,7 @@
    if ( FastCall( method, args, self, (void*)cppresult ) ) {
 	  cstr = cppstring_to_cstring( *cppresult );
       *length = cppresult->size();
-      cppresult->std::string::~string();
+      cppresult->std::string::~basic_string();
    } else
       *length = 0;
    free( (void*)cppresult ); 
@@ -712,7 +712,7 @@
          msg << "failed offset calculation between " << cb->GetName() << " and " << cd->GetName();
          // TODO: propagate this warning to caller w/o use of Python C-API
          // PyErr_Warn( PyExc_RuntimeWarning, const_cast<char*>( msg.str().c_str() ) );
-         std::cerr << "Warning: " << msg << '\n';
+         std::cerr << "Warning: " << msg.str() << '\n';
       }
 
    // return -1 to signal caller NOT to apply offset


More information about the pypy-commit mailing list