From b40e3b9c57593d881f47b4bcf26119f9a53cb520 Mon Sep 17 00:00:00 2001 From: Pharap <2933055+Pharap@users.noreply.github.com> Date: Mon, 25 Feb 2019 20:14:55 +0000 Subject: [PATCH] Fix missing Print::write overloads Problem: The overloading of `Print::write` was previously causing the other overloads of `write` to be hidden. For more information on this behaviour, see the following StackOverflow question: https://stackoverflow.com/questions/1628768 Solution: The solution uses a `using`-declaration to bring the `Print::write` overloads into `Arduboy2`'s scope. For more information on this usage of a `using`-declaration, see the following cppreference page: https://en.cppreference.com/w/cpp/language/using_declaration#In_class_definition --- src/Arduboy2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Arduboy2.h b/src/Arduboy2.h index b12a50c..ecdbcec 100644 --- a/src/Arduboy2.h +++ b/src/Arduboy2.h @@ -1390,6 +1390,7 @@ class Arduboy2 : public Print, public Arduboy2Base * * \see Arduboy2::write() */ + using Print::write; /** \brief * Display the boot logo sequence using printed text instead of a bitmap.