Skip to content

Commit

Permalink
Silence the boost (<1.76) warning message
Browse files Browse the repository at this point in the history
from .../gnucash-4.8/libgnucash/app-utils/gnc-quotes.cpp:33:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message:

    The practice of declaring the Bind placeholders (_1, _2, ...) in the
    global namespace is deprecated.
    Please use <boost/bind/bind.hpp> + using namespace boost::placeholders,
    or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
    
The issue was fixed in boost 1.76, but, e.g ubuntu 22.04 has boost 1.74
  • Loading branch information
richardcohen committed Jan 22, 2023
1 parent d039e65 commit 8044f79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libgnucash/app-utils/gnc-quotes.cpp
Expand Up @@ -27,6 +27,11 @@
#include <vector>
#include <string>
#include <iostream>
#include <boost/version.hpp>
#if BOOST_VERSION < 107600
// json_parser uses a deprecated version of bind.hpp
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/process.hpp>
Expand Down

0 comments on commit 8044f79

Please sign in to comment.