diff --git a/bindings/pyroot/src/Converters.cxx b/bindings/pyroot/src/Converters.cxx index 3947d32ed2dbb6a4004b0409c3bbfcf2e73862f4..86cab2f18daa557fc8e4b56a9de07c144c3ac28f 100644 --- a/bindings/pyroot/src/Converters.cxx +++ b/bindings/pyroot/src/Converters.cxx @@ -1001,7 +1001,7 @@ PyROOT::TConverter* PyROOT::CreateConverter( const std::string& fullType, Long_t return (h->second)( user ); //-- nothing? collect qualifier information - Bool_t isConst = resolvedType.find( "const" ) != std::string::npos; + Bool_t isConst = ti.Property() & G__BIT_ISCONSTANT; // accept const <type>& as converter by value (as python copies most types) if ( isConst && cpd == "&" ) {