mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 22:52:31 +00:00
C++11 compatibility fixes.
This commit is contained in:
+4
-4
@@ -39,15 +39,15 @@
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <tr1/functional>
|
||||
#include lt_tr1_functional
|
||||
|
||||
// Throws std::runtime_error upon receiving bad input.
|
||||
|
||||
class OptionParser {
|
||||
public:
|
||||
typedef std::tr1::function<void (const std::string&)> slot_string;
|
||||
typedef std::tr1::function<void (const std::string&, const std::string&)> slot_string_pair;
|
||||
typedef std::tr1::function<void (int, int)> slot_int_pair;
|
||||
typedef std::function<void (const std::string&)> slot_string;
|
||||
typedef std::function<void (const std::string&, const std::string&)> slot_string_pair;
|
||||
typedef std::function<void (int, int)> slot_int_pair;
|
||||
|
||||
void insert_flag(char c, slot_string s);
|
||||
void insert_option(char c, slot_string s);
|
||||
|
||||
Reference in New Issue
Block a user