some boost 1.34 preprocessor conditions and fixed assert in piece_picker
This commit is contained in:
@@ -328,7 +328,6 @@ typedef std::multimap<std::string, libtorrent::torrent_handle> handles_t;
|
||||
using boost::bind;
|
||||
using boost::filesystem::path;
|
||||
using boost::filesystem::exists;
|
||||
using boost::filesystem::no_check;
|
||||
using boost::filesystem::directory_iterator;
|
||||
using boost::filesystem::extension;
|
||||
|
||||
@@ -443,7 +442,10 @@ void scan_dir(path const& dir_path
|
||||
|
||||
int main(int ac, char* av[])
|
||||
{
|
||||
#if BOOST_VERSION < 103400
|
||||
using boost::filesystem::no_check;
|
||||
path::default_name_check(no_check);
|
||||
#endif
|
||||
|
||||
int listen_port;
|
||||
float preferred_ratio;
|
||||
|
@@ -49,8 +49,9 @@ int main(int argc, char* argv[])
|
||||
std::cerr << "usage: dump_torrent torrent-file\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if BOOST_VERSION < 103400
|
||||
boost::filesystem::path::default_name_check(boost::filesystem::no_check);
|
||||
#endif
|
||||
|
||||
try
|
||||
{
|
||||
|
@@ -45,9 +45,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
using namespace libtorrent;
|
||||
|
||||
#if BOOST_VERSION < 103400
|
||||
namespace fs = boost::filesystem;
|
||||
fs::path::default_name_check(fs::no_check);
|
||||
#endif
|
||||
|
||||
if (argc != 2)
|
||||
{
|
||||
|
Reference in New Issue
Block a user