From 767f81265ba1b905c40b7a129efb0a454e315971 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 6 Mar 2018 21:35:19 +1100 Subject: [PATCH] Sub: correct compilation under clang++ on MacOSX --- libraries/SITL/SIM_Submarine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Submarine.h b/libraries/SITL/SIM_Submarine.h index 85a8d22768..83d1ed3c64 100644 --- a/libraries/SITL/SIM_Submarine.h +++ b/libraries/SITL/SIM_Submarine.h @@ -45,7 +45,9 @@ public: protected: const float water_density = 1023.6; // (kg/m^3) At a temperature of 25 °C, salinity of 35 g/kg and 1 atm pressure - const struct { + const class FrameConfig { + public: + FrameConfig() = default; float length = 0.457; // x direction (meters) float width = 0.338; // y direction (meters) float height = 0.254; // z direction (meters)