mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 21:56:23 +00:00
Revert "Fixing bind problems using boost lambda?"
Doesn't work with 1.34
This commit is contained in:
parent
beb1e6bb3b
commit
e160c2f9d1
@ -26,8 +26,6 @@
|
||||
#include "serialization/binary_or_text.hpp"
|
||||
#include "serialization/parser.hpp"
|
||||
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
#include <boost/lambda/bind.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#define ERR_CACHE LOG_STREAM(err, cache)
|
||||
@ -266,7 +264,7 @@ namespace game_config {
|
||||
add_defines_map_diff(copy_map);
|
||||
}
|
||||
|
||||
void config_cache::add_define_from_file(const config::all_children_iterator::value_type value) const
|
||||
void config_cache::add_define_from_file(const config::all_children_iterator::value_type& value)
|
||||
{
|
||||
config_cache_transaction::instance().insert_to_active(
|
||||
preproc_define::read_pair(value.second));
|
||||
@ -274,9 +272,6 @@ namespace game_config {
|
||||
|
||||
void config_cache::read_defines_file(const std::string& path)
|
||||
{
|
||||
using namespace boost::lambda;
|
||||
boost::lambda::placeholder1_type X;
|
||||
|
||||
config cfg;
|
||||
read_file(path, cfg);
|
||||
|
||||
@ -285,9 +280,9 @@ namespace game_config {
|
||||
// use static preproc_define::read_pair(config*) to make a object
|
||||
// and pass that object config_cache_transaction::insert_to_active method
|
||||
std::for_each(cfg.ordered_begin(), cfg.ordered_end(),
|
||||
bind(&config_cache::add_define_from_file,
|
||||
boost::bind(&config_cache::add_define_from_file,
|
||||
this,
|
||||
X)
|
||||
_1)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ namespace game_config {
|
||||
void read_configs(const std::string& path, config& cfg, preproc_map& defines);
|
||||
void load_configs(const std::string& path, config& cfg);
|
||||
void read_defines_queue();
|
||||
void add_define_from_file(const config::all_children_iterator::value_type value) const;
|
||||
void add_define_from_file(const config::all_children_iterator::value_type& value);
|
||||
void read_defines_file(const std::string& path);
|
||||
|
||||
preproc_map& make_copy_map();
|
||||
|
Loading…
x
Reference in New Issue
Block a user