Skip to content

Teuchos: disable shared_ptr in tests for C++98

James Willenbring requested to merge ibaned:rcp-test-c++98 into develop

Created by: ibaned

Somewhere around the work of #1346, unit tests were introduced to compare performance of Teuchos::RCP against std::shared_ptr. Since std::shared_ptr is a C++11 feature, these tests no longer compile without C++11. Until #1390 (closed) is resolved, it is useful to compile Teuchos tests without C++11 to check the correctness of Teuchos in that configuration. This commit ifdefs out the use std::shared_ptr in these unit tests when C++11 is disabled.

@trilinos/teuchos

Merge request reports

Loading