1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-08-03 12:50:02 +00:00

Pass the istream to read_post instead of assuming std::cin.

This commit is contained in:
King_DuckZ 2017-05-10 20:42:42 +01:00
parent c907e5dd49
commit ed1343bd7b
3 changed files with 5 additions and 4 deletions

View file

@ -19,6 +19,7 @@
#include <boost/container/flat_map.hpp>
#include <string>
#include <istream>
namespace tawashi {
@ -27,6 +28,6 @@ namespace tawashi {
typedef boost::container::flat_map<std::string, std::string> PostMapType;
const PostMapType& read_post (const Env& parEnv);
const PostMapType& read_post (std::istream& parSrc, const Env& parEnv);
} //namespace cgi
} //namespace tawashi