]> git.mxchange.org Git - simgear.git/commitdiff
Fix missing include in simgear/misc/strutils_test.cxx
authorFlorent Rougon <f.rougon@free.fr>
Mon, 9 May 2016 14:37:09 +0000 (16:37 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
strutils_test.cxx uses std::string but doesn't include <string>
directly. This doesn't cause any error because it includes this header
indirectly via "strutils.hxx". However, I believe relying on this is bad
practice, hence the tiny fix.

simgear/misc/strutils_test.cxx

index 0ab87224c0c9b82b0c3b372da1a2cc2c14ce4b4b..6c654f5ed03e67a31d5c51db1707c518fb8458b7 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <errno.h>
 #include <stdlib.h>             // _set_errno() on Windows
+#include <string>
 #include <fstream>              // std::ifstream
 #include <simgear/compiler.h>
 #include "strutils.hxx"