Skip to content

Commit

Permalink
Work around deprecation warning coming from boost/bind.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
p12tic committed Aug 27, 2022
1 parent f85b946 commit e3cf526
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aliceVision/localization/LocalizationResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include <aliceVision/sfmDataIO/jsonIO.hpp>

#include <boost/property_tree/ptree.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>

#include <limits>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#include <boost/progress.hpp>
#include <boost/format.hpp>
#include <boost/functional/hash.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>

#include <tuple>
Expand Down
3 changes: 3 additions & 0 deletions src/aliceVision/sfmDataIO/jsonIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <aliceVision/camera/camera.hpp>
#include <aliceVision/sfmDataIO/viewIO.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>

#include <memory>
Expand Down
4 changes: 4 additions & 0 deletions src/software/convert/main_importKnownPoses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>


Expand Down
4 changes: 4 additions & 0 deletions src/software/pipeline/main_panoramaCompositing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
#include <fstream>
#include <algorithm>
#include <boost/property_tree/ptree.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>
#include <boost/filesystem.hpp>

Expand Down
4 changes: 4 additions & 0 deletions src/software/pipeline/main_panoramaMerging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
#include <fstream>
#include <algorithm>
#include <boost/property_tree/ptree.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>
#include <boost/filesystem.hpp>

Expand Down
4 changes: 4 additions & 0 deletions src/software/pipeline/main_panoramaSeams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
#include <fstream>
#include <algorithm>
#include <boost/property_tree/ptree.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>
#include <boost/filesystem.hpp>

Expand Down
4 changes: 4 additions & 0 deletions src/software/utils/main_colorCheckerCorrection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <boost/property_tree/ptree.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>

#include <opencv2/core.hpp>
Expand Down
4 changes: 4 additions & 0 deletions src/software/utils/main_colorCheckerDetection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <boost/property_tree/ptree.hpp>

// Avoids deprecation warning caused by internals of json_parser. This is properly fixed in
// Boost 1.76.0: https://github.com/boostorg/property_tree/commit/d1c8825a45a0717e1ad79583d3283b0e5e32831e
#define BOOST_BIND_GLOBAL_PLACEHOLDERS 1
#include <boost/property_tree/json_parser.hpp>

#include <opencv2/core.hpp>
Expand Down

0 comments on commit e3cf526

Please sign in to comment.