From 4c80880de38cffa3b6e0d748592142b908ea1732 Mon Sep 17 00:00:00 2001 From: Anton Geraschenko Date: Thu, 17 Nov 2016 22:54:27 -0800 Subject: [PATCH] Make Colour::use not pure virtual. This fixes #746. --- include/internal/catch_console_colour_impl.hpp | 2 +- single_include/catch.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_console_colour_impl.hpp b/include/internal/catch_console_colour_impl.hpp index f776952b..4ee4e6e8 100644 --- a/include/internal/catch_console_colour_impl.hpp +++ b/include/internal/catch_console_colour_impl.hpp @@ -15,7 +15,7 @@ namespace Catch { struct IColourImpl { virtual ~IColourImpl() {} - virtual void use( Colour::Code _colourCode ) = 0; + virtual void use( Colour::Code _colourCode ) {}; }; struct NoColourImpl : IColourImpl { diff --git a/single_include/catch.hpp b/single_include/catch.hpp index 2e6fe8d3..cbd5579c 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -7028,7 +7028,7 @@ namespace Catch { struct IColourImpl { virtual ~IColourImpl() {} - virtual void use( Colour::Code _colourCode ) = 0; + virtual void use( Colour::Code _colourCode ) {}; }; struct NoColourImpl : IColourImpl {