diff --git a/ompi/contrib/vt/vt/tools/vtunify/vt_unify_defs_recs.h b/ompi/contrib/vt/vt/tools/vtunify/vt_unify_defs_recs.h index 18e17e0f80..51b84aaefe 100644 --- a/ompi/contrib/vt/vt/tools/vtunify/vt_unify_defs_recs.h +++ b/ompi/contrib/vt/vt/tools/vtunify/vt_unify_defs_recs.h @@ -89,6 +89,14 @@ struct DefRec_BaseS VT_MPI_INT & bufferPos ); #endif // VT_MPI + // NOTE: this operator is actually not used but necessary to work around + // a build error with the Clang++ compiler + // (see http://www.open-mpi.org/community/lists/devel/2012/02/10419.php) + bool operator<( const DefRec_BaseS & a ) const + { + return dtype < a.dtype; + } + DefRecTypeT dtype; uint32_t loccpuid; uint32_t deftoken; diff --git a/ompi/contrib/vt/vt/tools/vtunify/vt_unify_tkfac_scope.hh b/ompi/contrib/vt/vt/tools/vtunify/vt_unify_tkfac_scope.hh index 96a3f41702..84ac913456 100644 --- a/ompi/contrib/vt/vt/tools/vtunify/vt_unify_tkfac_scope.hh +++ b/ompi/contrib/vt/vt/tools/vtunify/vt_unify_tkfac_scope.hh @@ -60,7 +60,7 @@ TokenFactoryScopeC::create( const void * localDef, uint32_t globalToken ) else global_def.deftoken = globalToken; - m_globDefs->insert( global_def ).first; + m_globDefs->insert( global_def ); } // set token translation for process, if necessary