Skip to content

Commit

Permalink
Fixing #56.
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticeRage committed Sep 2, 2023
1 parent 97ed586 commit fccd5eb
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions plugins/plugin_virustotal/json_spirit/json_spirit_reader_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

//#define BOOST_SPIRIT_THREADSAFE // uncomment for multithreaded use, requires linking to boost.thread

#include <boost/bind/bind.hpp>
#include <boost/function.hpp>
#include <boost/version.hpp>

Expand Down Expand Up @@ -432,18 +431,18 @@ namespace json_spirit
typedef boost::function< void( boost::int64_t ) > Int_action;
typedef boost::function< void( boost::uint64_t ) > Uint64_action;

Char_action begin_obj ( boost::bind( &Semantic_actions_t::begin_obj, &self.actions_, boost::placeholders::_1 ) );
Char_action end_obj ( boost::bind( &Semantic_actions_t::end_obj, &self.actions_, boost::placeholders::_1 ) );
Char_action begin_array( boost::bind( &Semantic_actions_t::begin_array, &self.actions_, boost::placeholders::_1 ) );
Char_action end_array ( boost::bind( &Semantic_actions_t::end_array, &self.actions_, boost::placeholders::_1 ) );
Str_action new_name ( boost::bind( &Semantic_actions_t::new_name, &self.actions_, boost::placeholders::_1, boost::placeholders::_2 ) );
Str_action new_str ( boost::bind( &Semantic_actions_t::new_str, &self.actions_, boost::placeholders::_1, boost::placeholders::_2 ) );
Str_action new_true ( boost::bind( &Semantic_actions_t::new_true, &self.actions_, boost::placeholders::_1, boost::placeholders::_2 ) );
Str_action new_false ( boost::bind( &Semantic_actions_t::new_false, &self.actions_, boost::placeholders::_1, boost::placeholders::_2 ) );
Str_action new_null ( boost::bind( &Semantic_actions_t::new_null, &self.actions_, boost::placeholders::_1, boost::placeholders::_2 ) );
Real_action new_real ( boost::bind( &Semantic_actions_t::new_real, &self.actions_, boost::placeholders::_1 ) );
Int_action new_int ( boost::bind( &Semantic_actions_t::new_int, &self.actions_, boost::placeholders::_1 ) );
Uint64_action new_uint64 ( boost::bind( &Semantic_actions_t::new_uint64, &self.actions_, boost::placeholders::_1 ) );
Char_action begin_obj ( std::bind( &Semantic_actions_t::begin_obj, &self.actions_, std::placeholders::_1 ) );
Char_action end_obj (std::bind( &Semantic_actions_t::end_obj, &self.actions_, std::placeholders::_1 ) );
Char_action begin_array(std::bind( &Semantic_actions_t::begin_array, &self.actions_, std::placeholders::_1 ) );
Char_action end_array (std::bind( &Semantic_actions_t::end_array, &self.actions_, std::placeholders::_1 ) );
Str_action new_name (std::bind( &Semantic_actions_t::new_name, &self.actions_, std::placeholders::_1, std::placeholders::_2 ) );
Str_action new_str (std::bind( &Semantic_actions_t::new_str, &self.actions_, std::placeholders::_1, std::placeholders::_2 ) );
Str_action new_true (std::bind( &Semantic_actions_t::new_true, &self.actions_, std::placeholders::_1, std::placeholders::_2 ) );
Str_action new_false (std::bind( &Semantic_actions_t::new_false, &self.actions_, std::placeholders::_1, std::placeholders::_2 ) );
Str_action new_null (std::bind( &Semantic_actions_t::new_null, &self.actions_, std::placeholders::_1, std::placeholders::_2 ) );
Real_action new_real (std::bind( &Semantic_actions_t::new_real, &self.actions_, std::placeholders::_1 ) );
Int_action new_int (std::bind( &Semantic_actions_t::new_int, &self.actions_, std::placeholders::_1 ) );
Uint64_action new_uint64 (std::bind( &Semantic_actions_t::new_uint64, &self.actions_, std::placeholders::_1 ) );

// actual grammer

Expand Down

0 comments on commit fccd5eb

Please sign in to comment.