From 14c65b45b49ee451ef748508d4d95a1e252d93ba Mon Sep 17 00:00:00 2001 From: Tomasz Swierczek Date: Wed, 18 Mar 2020 07:52:14 +0100 Subject: [PATCH] Fix build break Previously, log_build_info was not having additional bool parameter. When new parameter was added, new function was added that overridden previous one but had no chance of being properly used (ambiguity introduced). This failed at compile time in some envs, depending on options used. Change-Id: Icb8ffeae5c0c51bca2e9a6f2a0956fc6fe1590ec --- tests/colour_log_formatter.cpp | 13 ------------- tests/colour_log_formatter.h | 1 - 2 files changed, 14 deletions(-) diff --git a/tests/colour_log_formatter.cpp b/tests/colour_log_formatter.cpp index fb51aaa..38d7e7c 100644 --- a/tests/colour_log_formatter.cpp +++ b/tests/colour_log_formatter.cpp @@ -111,19 +111,6 @@ colour_log_formatter::log_finish(std::ostream &ostr) //____________________________________________________________________________// void -colour_log_formatter::log_build_info(std::ostream &output) -{ - output << "Platform: " << BOOST_PLATFORM << '\n' - << "Compiler: " << BOOST_COMPILER << '\n' - << "STL : " << BOOST_STDLIB << '\n' - << "Boost : " << BOOST_VERSION / 100000 << "." - << BOOST_VERSION / 100 % 1000 << "." - << BOOST_VERSION % 100 << std::endl; -} - -//____________________________________________________________________________// - -void colour_log_formatter::log_build_info(std::ostream &output, bool log_build_info) { if (log_build_info) diff --git a/tests/colour_log_formatter.h b/tests/colour_log_formatter.h index 937ef9b..7fbc934 100644 --- a/tests/colour_log_formatter.h +++ b/tests/colour_log_formatter.h @@ -24,7 +24,6 @@ public: std::ostream &, boost::unit_test::counter_t test_cases_amount); void log_finish(std::ostream &); - void log_build_info(std::ostream &); void log_build_info(std::ostream &output, bool log_build_info = true); void test_unit_start( -- 2.7.4