include <iosfwd> instead of <iostream>
avoid bloat caused by <iostream> and std::cout and friends in apps where iostream are not used.
This commit is contained in:
parent
f1c543cb7b
commit
f0ca96d462
3 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,7 @@ SOFTWARE.
|
||||||
#include <functional> // function, hash, less
|
#include <functional> // function, hash, less
|
||||||
#include <initializer_list> // initializer_list
|
#include <initializer_list> // initializer_list
|
||||||
#include <iomanip> // hex
|
#include <iomanip> // hex
|
||||||
#include <iostream> // istream, ostream
|
#include <iosfwd> // istream, ostream
|
||||||
#include <iterator> // advance, begin, back_inserter, bidirectional_iterator_tag, distance, end, inserter, iterator, iterator_traits, next, random_access_iterator_tag, reverse_iterator
|
#include <iterator> // advance, begin, back_inserter, bidirectional_iterator_tag, distance, end, inserter, iterator, iterator_traits, next, random_access_iterator_tag, reverse_iterator
|
||||||
#include <limits> // numeric_limits
|
#include <limits> // numeric_limits
|
||||||
#include <locale> // locale
|
#include <locale> // locale
|
||||||
|
|
|
@ -36,6 +36,7 @@ using nlohmann::json;
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
TEST_CASE("README", "[hide]")
|
TEST_CASE("README", "[hide]")
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,6 +33,7 @@ SOFTWARE.
|
||||||
using nlohmann::json;
|
using nlohmann::json;
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
extern size_t calls;
|
extern size_t calls;
|
||||||
size_t calls = 0;
|
size_t calls = 0;
|
||||||
|
|
Loading…
Reference in a new issue