From 68d6feaa03beb89b80eb2a2a7d39a6f4bbf32b9c Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 25 Jan 2019 20:19:50 -0500 Subject: [PATCH] Adds missing includes and gets more explicit about exceptions. --- Outputs/OpenGL/ScanTarget.cpp | 4 ++++ Outputs/OpenGL/ScanTarget.hpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Outputs/OpenGL/ScanTarget.cpp b/Outputs/OpenGL/ScanTarget.cpp index 8a0153457..ff4451a12 100644 --- a/Outputs/OpenGL/ScanTarget.cpp +++ b/Outputs/OpenGL/ScanTarget.cpp @@ -7,8 +7,12 @@ // #include "ScanTarget.hpp" + #include "Primitives/Rectangle.hpp" +#include +#include + using namespace Outputs::Display::OpenGL; namespace { diff --git a/Outputs/OpenGL/ScanTarget.hpp b/Outputs/OpenGL/ScanTarget.hpp index 8af4d8c06..acd36d3d4 100644 --- a/Outputs/OpenGL/ScanTarget.hpp +++ b/Outputs/OpenGL/ScanTarget.hpp @@ -77,7 +77,7 @@ class ScanTarget: public Outputs::Display::ScanTarget { struct PointerSet { // This constructor is here to appease GCC's interpretation of // an ambiguity in the C++ standard; cf. https://stackoverflow.com/questions/17430377 - PointerSet() {} + PointerSet() noexcept {} // The sizes below might be less hassle as something more natural like ints, // but squeezing this struct into 64 bits makes the std::atomics more likely