build: use ostream/istream over iostream

This commit is contained in:
Danny Robson 2016-08-04 17:42:41 +10:00
parent 310c01b9d2
commit 116ad04a1f
19 changed files with 36 additions and 24 deletions

View File

@ -20,7 +20,7 @@
#include "point.hpp" #include "point.hpp"
#include "region.hpp" #include "region.hpp"
#include <iostream> #include <ostream>
namespace util { namespace util {
template <size_t S> template <size_t S>

View File

@ -19,7 +19,7 @@
#include "coord.hpp" #include "coord.hpp"
#include <iostream> #include <ostream>
namespace util { namespace util {
/// An RGBA colour POD type. /// An RGBA colour POD type.

View File

@ -20,7 +20,7 @@
#include "types/bits.hpp" #include "types/bits.hpp"
#include <cstdint> #include <cstdint>
#include <iostream> #include <ostream>
namespace util { namespace util {
template <typename T, unsigned I, unsigned E> template <typename T, unsigned I, unsigned E>

View File

@ -16,6 +16,8 @@
#include "./aabb.hpp" #include "./aabb.hpp"
#include "./iostream.hpp"
#include "../debug.hpp" #include "../debug.hpp"
using util::geom::AABB; using util::geom::AABB;

View File

@ -65,9 +65,6 @@ namespace util { namespace geom {
typedef AABB<3,float> AABB3f; typedef AABB<3,float> AABB3f;
typedef AABB<3,size_t> AABB3u; typedef AABB<3,size_t> AABB3u;
typedef AABB<3,intmax_t> AABB3i; typedef AABB<3,intmax_t> AABB3i;
template <size_t S, typename T>
std::ostream& operator<< (std::ostream&, AABB<S,T>);
} } } }
#include "aabb.ipp" #include "aabb.ipp"

View File

@ -19,9 +19,17 @@
#include "./fwd.hpp" #include "./fwd.hpp"
#include <iostream> #include <ostream>
namespace util { namespace geom { namespace util { namespace geom {
template <size_t S, typename T>
std::ostream&
operator<< (std::ostream&, AABB<S,T>);
template <size_t S, typename T>
std::ostream&
operator<< (std::ostream&, ray<S,T>);
template <size_t S, typename T> template <size_t S, typename T>
std::ostream& std::ostream&
operator<< (std::ostream&, sphere<S,T>); operator<< (std::ostream&, sphere<S,T>);

View File

@ -14,9 +14,11 @@
* Copyright 2015 Danny Robson <danny@nerdcruft.net> * Copyright 2015 Danny Robson <danny@nerdcruft.net>
*/ */
#include "ray.hpp" #include "./ray.hpp"
#include "./iostream.hpp"
#include "./ops.hpp"
#include "ops.hpp"
#include "../debug.hpp" #include "../debug.hpp"
using util::geom::ray; using util::geom::ray;

View File

@ -23,7 +23,7 @@
#include "../vector.hpp" #include "../vector.hpp"
#include "../point.hpp" #include "../point.hpp"
#include <iostream> #include <ostream>
namespace util { namespace geom { namespace util { namespace geom {
template <size_t S, typename T> template <size_t S, typename T>
@ -50,9 +50,6 @@ namespace util { namespace geom {
vector<S,T> direction; vector<S,T> direction;
}; };
template <size_t S, typename T>
std::ostream& operator<< (std::ostream&, ray<S,T>);
typedef ray<2,float> ray2f; typedef ray<2,float> ray2f;
typedef ray<3,float> ray3f; typedef ray<3,float> ray3f;
} } } }

View File

@ -25,6 +25,7 @@
#include "preprocessor.hpp" #include "preprocessor.hpp"
#include <deque> #include <deque>
#include <iostream>
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
%%{ %%{

View File

@ -18,7 +18,7 @@
#define __UTIL_JSON_FLAT_HPP #define __UTIL_JSON_FLAT_HPP
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>
#include <iostream> #include <ostream>
#include "../view.hpp" #include "../view.hpp"

View File

@ -23,7 +23,7 @@
#include "../iterator.hpp" #include "../iterator.hpp"
#include "../view.hpp" #include "../view.hpp"
#include <iostream> #include <ostream>
#include <map> #include <map>
#include <memory> #include <memory>
#include <string> #include <string>

View File

@ -24,12 +24,12 @@
#include "cast.hpp" #include "cast.hpp"
#include <array> #include <array>
#include <ctime>
#include <cstring> #include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map> #include <map>
#include <string> #include <string>
#include <iomanip>
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
static static

View File

@ -20,7 +20,7 @@
#include "./nocopy.hpp" #include "./nocopy.hpp"
#include "./preprocessor.hpp" #include "./preprocessor.hpp"
#include <iostream> #include <ostream>
#include <string> #include <string>
// Windows.h or one of its friends defines a macro 'ERROR'. Screw Microsoft. // Windows.h or one of its friends defines a macro 'ERROR'. Screw Microsoft.

View File

@ -24,7 +24,7 @@
#include "ws2tcpip.h" #include "ws2tcpip.h"
#endif #endif
#include <iostream> #include <ostream>
#include <string> #include <string>

View File

@ -19,7 +19,7 @@
#define __UTIL_RANGE_HPP #define __UTIL_RANGE_HPP
#include <cstdint> #include <cstdint>
#include <iostream> #include <ostream>
namespace util { namespace util {
/** /**

View File

@ -17,7 +17,7 @@
#ifndef __UTIL_STATS_HPP #ifndef __UTIL_STATS_HPP
#define __UTIL_STATS_HPP #define __UTIL_STATS_HPP
#include <iostream> #include <ostream>
namespace util { namespace util {

View File

@ -17,7 +17,7 @@
#ifndef __UTIL_STREAM_HPP #ifndef __UTIL_STREAM_HPP
#define __UTIL_STREAM_HPP #define __UTIL_STREAM_HPP
#include <iostream> #include <ostream>
namespace util { namespace util {
namespace stream { namespace stream {

View File

@ -23,9 +23,13 @@
#include "io.hpp" #include "io.hpp"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <iostream>
namespace fs = boost::filesystem; namespace fs = boost::filesystem;
///////////////////////////////////////////////////////////////////////////////
enum { enum {
ARG_CMD, ARG_CMD,
ARG_SCHEMA, ARG_SCHEMA,
@ -35,6 +39,7 @@ enum {
}; };
///////////////////////////////////////////////////////////////////////////////
int int
main (int argc, char **argv) { main (int argc, char **argv) {
if (argc != NUM_ARGS) { if (argc != NUM_ARGS) {

View File

@ -19,7 +19,7 @@
#include <array> #include <array>
#include <string> #include <string>
#include <iostream> #include <ostream>
#include <limits> #include <limits>
namespace util { namespace util {