summaryrefslogtreecommitdiff
path: root/include/tgbot/net/HttpReqArg.h
diff options
context:
space:
mode:
authorAndrea Giove <andreagiove@outlook.com>2016-03-27 18:24:03 +0200
committerAndrea Giove <andreagiove@outlook.com>2016-03-27 18:24:03 +0200
commit405d973af3460ee2860d01c7169cf6749fa98b07 (patch)
tree33f5227ecf142138709378d3ef95e0cfee29519c /include/tgbot/net/HttpReqArg.h
parentd2baea74a0ac09db992ab36a861d09caccdab697 (diff)
Fixed compilation errors
Diffstat (limited to 'include/tgbot/net/HttpReqArg.h')
-rw-r--r--include/tgbot/net/HttpReqArg.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h
index 5056e6c..5aa60fd 100644
--- a/include/tgbot/net/HttpReqArg.h
+++ b/include/tgbot/net/HttpReqArg.h
@@ -25,6 +25,7 @@
#include <string>
#include <vector>
+#include <functional>
#include <boost/lexical_cast.hpp>
@@ -43,22 +44,6 @@ public:
{
}
- template<typename T>
- HttpReqArg(const std::string& name, const std::vector<T>& list, function<std::string (const T&)> parsingFunction){
- this->name = name;
- value = "[";
- for (const T& item : list){
- value += parsingFunction(item);
- value += ',';
- }
- value.erase(this->value.length() - 1);
- value += ']';
-
- isFile = false;
- mimeType = "text/plain";
- fileName = "";
- }
-
/**
* Name of an argument.
*/