mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
remove needless include files
This commit is contained in:
3
test.cpp
3
test.cpp
@@ -1,4 +1,6 @@
|
|||||||
#include "toml.hpp"
|
#include "toml.hpp"
|
||||||
|
#include <map>
|
||||||
|
#include <list>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -68,6 +70,7 @@ int main()
|
|||||||
std::cout << toml::is_castable<std::map<std::string, int>, toml::value_t::Table>::value << std::endl;
|
std::cout << toml::is_castable<std::map<std::string, int>, toml::value_t::Table>::value << std::endl;
|
||||||
std::cout << toml::is_castable<int, toml::value_t::Table>::value << std::endl;
|
std::cout << toml::is_castable<int, toml::value_t::Table>::value << std::endl;
|
||||||
std::cout << toml::is_castable<std::map<int, std::string>, toml::value_t::Table>::value << std::endl;
|
std::cout << toml::is_castable<std::map<int, std::string>, toml::value_t::Table>::value << std::endl;
|
||||||
|
std::cout << toml::is_castable<std::list<int>, toml::value_t::Array>::value << std::endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
6
toml.hpp
6
toml.hpp
@@ -30,13 +30,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <array>
|
|
||||||
#include <deque>
|
|
||||||
#include <list>
|
|
||||||
#include <map>
|
|
||||||
#include <set>
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <unordered_set>
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
Reference in New Issue
Block a user