Skip to content

Teuchos: try to silence RCPNodeInfo() warning

James Willenbring requested to merge ibaned:rcpnode-ctor into develop

Created by: ibaned

@trilinos/teuchos

Description

It seems certain compilers are smart enough to realize that no code will ever call RCPNodeInfo's default constructor, and it is therefore pointless to define it. To make this clear, I've changed its definition to be "= delete;" (C++11 !) and changed the one place where RCPNodeInfo is constructed to use emplace_hint, which really isn't too critical but may improve performance a bit.

Motivation and Context

This change resolves this warning on GCC 4.9.3 and 5.4.0:

src/Trilinos/packages/teuchos/core/src/Teuchos_RCPNode.cpp(73): warning: function "::RCPNodeInfo::RCPNodeInfo()" was declared but never referenced

How Has This Been Tested?

A build of Teuchos passed regression tests

Merge request reports

Loading