Skip to content
Snippets Groups Projects
Commit ab630b4f authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Use transparent functor for less<> and greater<>.

clang-tidy modernize-use-transparent-functors check.
parent 6bd1f23b
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// Explicitly instantiate the boost::property_tree::ptree which is a typedef to // Explicitly instantiate the boost::property_tree::ptree which is a typedef to
// the following basic_ptree. // the following basic_ptree.
template class boost::property_tree::basic_ptree<std::string, std::string, template class boost::property_tree::basic_ptree<std::string, std::string,
std::less<std::string>>; std::less<>>;
//! Collects swallowed error messages raised by the check during destruction of //! Collects swallowed error messages raised by the check during destruction of
//! ConfigTree instances. //! ConfigTree instances.
......
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
#include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ptree.hpp>
extern template class boost::property_tree::basic_ptree< extern template class boost::property_tree::basic_ptree<
std::string, std::string, std::less<std::string>>; std::string, std::string, std::less<>>;
namespace BaseLib namespace BaseLib
{ {
......
...@@ -49,7 +49,7 @@ std::unique_ptr<TimeStepAlgorithm> createEvolutionaryPIDcontroller( ...@@ -49,7 +49,7 @@ std::unique_ptr<TimeStepAlgorithm> createEvolutionaryPIDcontroller(
if (!fixed_output_times.empty()) if (!fixed_output_times.empty())
{ {
// Remove possible duplicated elements and sort in descending order. // Remove possible duplicated elements and sort in descending order.
BaseLib::makeVectorUnique(fixed_output_times, std::greater<double>()); BaseLib::makeVectorUnique(fixed_output_times, std::greater<>());
} }
//! \ogs_file_param{prj__time_loop__processes__process__time_stepping__EvolutionaryPIDcontroller__tol} //! \ogs_file_param{prj__time_loop__processes__process__time_stepping__EvolutionaryPIDcontroller__tol}
......
...@@ -124,7 +124,7 @@ std::unique_ptr<Output> createOutput( ...@@ -124,7 +124,7 @@ std::unique_ptr<Output> createOutput(
{ {
fixed_output_times = std::move(*fixed_output_times_ptr); fixed_output_times = std::move(*fixed_output_times_ptr);
// Remove possible duplicated elements and sort in descending order. // Remove possible duplicated elements and sort in descending order.
BaseLib::makeVectorUnique(fixed_output_times, std::greater<double>()); BaseLib::makeVectorUnique(fixed_output_times, std::greater<>());
} }
bool const output_iteration_results = bool const output_iteration_results =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment