diff --git a/simgear/canvas/layout/Layout.cxx b/simgear/canvas/layout/Layout.cxx index dd1c4951..2537dc79 100644 --- a/simgear/canvas/layout/Layout.cxx +++ b/simgear/canvas/layout/Layout.cxx @@ -18,6 +18,9 @@ #include #include "Layout.hxx" + +#include + #include namespace simgear diff --git a/simgear/io/HTTPRequest.cxx b/simgear/io/HTTPRequest.cxx index 1e649c01..c9a25a47 100644 --- a/simgear/io/HTTPRequest.cxx +++ b/simgear/io/HTTPRequest.cxx @@ -19,6 +19,7 @@ #include "HTTPRequest.hxx" #include +#include // for std::min #include #include diff --git a/simgear/io/sg_binobj.hxx b/simgear/io/sg_binobj.hxx index 32acdad1..9a2f4485 100644 --- a/simgear/io/sg_binobj.hxx +++ b/simgear/io/sg_binobj.hxx @@ -34,18 +34,15 @@ #include #include -#include +#include #include -#include +#include #define MAX_TC_SETS (4) #define MAX_VAS (8) -// I really want to pass around fixed length arrays, as the size -// has to be hardcoded -// but it's a C++0x feature use boost in its absence -typedef boost::array tci_list; -typedef boost::array vai_list; +typedef std::array tci_list; +typedef std::array vai_list; /** STL Structure used to store (integer index) object information */ typedef std::vector < int_list > group_list; diff --git a/simgear/misc/CSSBorder.cxx b/simgear/misc/CSSBorder.cxx index c33ce4b1..c0815f25 100644 --- a/simgear/misc/CSSBorder.cxx +++ b/simgear/misc/CSSBorder.cxx @@ -18,7 +18,6 @@ #include "CSSBorder.hxx" -#include #include namespace simgear diff --git a/simgear/nasal/cppbind/detail/nasal_traits.hxx b/simgear/nasal/cppbind/detail/nasal_traits.hxx index 37329713..964c831f 100644 --- a/simgear/nasal/cppbind/detail/nasal_traits.hxx +++ b/simgear/nasal/cppbind/detail/nasal_traits.hxx @@ -20,6 +20,7 @@ #ifndef SG_NASAL_TRAITS_HXX_ #define SG_NASAL_TRAITS_HXX_ +#include #include // Forward declarations @@ -30,12 +31,6 @@ template class SGWeakPtr; template class SGVec2; template class SGVec4; -namespace std -{ - template class shared_ptr; - template class weak_ptr; -} - namespace osg { class Referenced; diff --git a/simgear/nasal/cppbind/detail/to_nasal_helper.hxx b/simgear/nasal/cppbind/detail/to_nasal_helper.hxx index 22d24cf2..2fedf1e3 100644 --- a/simgear/nasal/cppbind/detail/to_nasal_helper.hxx +++ b/simgear/nasal/cppbind/detail/to_nasal_helper.hxx @@ -27,7 +27,6 @@ #include #include -#include #include #include diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index e5777aa8..cc3a1b19 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -28,9 +28,9 @@ using std::cerr; #else # include # include -# include # include # include + # include # include # include @@ -162,7 +162,6 @@ parse_name (const SGPropertyNode *node, const Range &path) // Validate the name of a single node inline bool validateName(const std::string& name) { - using namespace boost; if (name.empty()) return false; if (!isalpha(name[0]) && name[0] != '_') @@ -2088,10 +2087,9 @@ SGPropertyNode::getNode (const char * relative_path, bool create) return find_node(this, components, 0, create); #else - using namespace boost; - - return find_node(this, make_iterator_range(relative_path, relative_path - + strlen(relative_path)), + return find_node(this, + boost::make_iterator_range(relative_path, + relative_path + strlen(relative_path)), create); #endif } @@ -2107,10 +2105,9 @@ SGPropertyNode::getNode (const char * relative_path, int index, bool create) return find_node(this, components, 0, create); #else - using namespace boost; - - return find_node(this, make_iterator_range(relative_path, relative_path - + strlen(relative_path)), + return find_node(this, + boost::make_iterator_range(relative_path, + relative_path + strlen(relative_path)), create, index); #endif } diff --git a/simgear/scene/material/Effect.cxx b/simgear/scene/material/Effect.cxx index 3e0cfc58..6432dda2 100644 --- a/simgear/scene/material/Effect.cxx +++ b/simgear/scene/material/Effect.cxx @@ -36,7 +36,6 @@ #include #include -#include #include #include diff --git a/simgear/scene/material/TextureBuilder.cxx b/simgear/scene/material/TextureBuilder.cxx index 0de2882c..2a1e96b3 100644 --- a/simgear/scene/material/TextureBuilder.cxx +++ b/simgear/scene/material/TextureBuilder.cxx @@ -39,7 +39,6 @@ #include #include -#include #include #include diff --git a/simgear/scene/material/makeEffect.cxx b/simgear/scene/material/makeEffect.cxx index 40926dce..b006990e 100644 --- a/simgear/scene/material/makeEffect.cxx +++ b/simgear/scene/material/makeEffect.cxx @@ -12,9 +12,6 @@ #include #include -#include -#include - #include #include diff --git a/simgear/scene/material/mipmap.cxx b/simgear/scene/material/mipmap.cxx index 0fcf6752..ba8ef3c8 100644 --- a/simgear/scene/material/mipmap.cxx +++ b/simgear/scene/material/mipmap.cxx @@ -27,8 +27,6 @@ #include #include -#include - namespace simgear { namespace effect { EffectNameValue mipmapFunctionsInit[] = diff --git a/simgear/scene/model/ModelRegistry.cxx b/simgear/scene/model/ModelRegistry.cxx index 73e5a353..9678a3ef 100644 --- a/simgear/scene/model/ModelRegistry.cxx +++ b/simgear/scene/model/ModelRegistry.cxx @@ -66,9 +66,6 @@ #include "BoundingVolumeBuildVisitor.hxx" #include "model.hxx" -#include -#include - using namespace std; using namespace osg; using namespace osgUtil; diff --git a/simgear/scene/model/SGLightAnimation.cxx b/simgear/scene/model/SGLightAnimation.cxx index 52945469..ff172298 100644 --- a/simgear/scene/model/SGLightAnimation.cxx +++ b/simgear/scene/model/SGLightAnimation.cxx @@ -31,7 +31,6 @@ #include #include #include -#include typedef std::map > EffectMap; static EffectMap lightEffectMap; diff --git a/simgear/scene/tgdb/SGBuildingBin.cxx b/simgear/scene/tgdb/SGBuildingBin.cxx index 3dbd7c5b..7ce1ad3e 100644 --- a/simgear/scene/tgdb/SGBuildingBin.cxx +++ b/simgear/scene/tgdb/SGBuildingBin.cxx @@ -29,8 +29,6 @@ #include #include -#include - #include #include #include diff --git a/simgear/scene/tgdb/TreeBin.cxx b/simgear/scene/tgdb/TreeBin.cxx index 7befc6a5..d2cf793c 100644 --- a/simgear/scene/tgdb/TreeBin.cxx +++ b/simgear/scene/tgdb/TreeBin.cxx @@ -28,8 +28,6 @@ #include #include -#include - #include #include #include