Skip to content

Commit

Permalink
Merge pull request #8606 from JanMarvin/boost175
Browse files Browse the repository at this point in the history
fix building with boost 1.75
  • Loading branch information
jmcphers committed Dec 16, 2020
2 parents 3a45f44 + a73589c commit c8b78eb
Show file tree
Hide file tree
Showing 108 changed files with 268 additions and 116 deletions.
1 change: 0 additions & 1 deletion src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ include("${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeGlobals.txt")

# global directives
add_definitions(-DBOOST_ENABLE_ASSERT_HANDLER)
add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)

# explicitly do not use new c++ 11 features for websocketpp
# they currently do not work with our source
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/ConfigUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
#include <algorithm>

#include <boost/regex.hpp>
#include <boost/bind.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/bind/bind.hpp>

#include <shared_core/Error.hpp>
#include <shared_core/FilePath.hpp>
#include <core/FileSerializer.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace config_utils {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/FileLockTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
#include <shared_core/FilePath.hpp>

#include <boost/thread.hpp>
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>

#define RSTUDIO_NO_TESTTHAT_ALIASES
#include <tests/TestThat.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace tests {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/FileUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <fstream>
#include <iostream>

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

#include <core/FileUtils.hpp>
#include <core/FileSerializer.hpp>
Expand All @@ -29,6 +29,8 @@
#include <core/system/PosixUser.hpp>
#endif

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace file_utils {
Expand Down
3 changes: 3 additions & 0 deletions src/cpp/core/HtmlUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@

#include <boost/format.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/bind/bind.hpp>

#include <core/Base64.hpp>
#include <core/FileSerializer.hpp>
#include <core/RegexUtils.hpp>

#include <core/http/Util.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace html_utils {
Expand Down
3 changes: 3 additions & 0 deletions src/cpp/core/file_lock/FileLock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@
#include <core/system/Xdg.hpp>

#include <boost/algorithm/string.hpp>
#include <boost/bind/bind.hpp>

// borrowed from SessionConstants.hpp
#define kRStudioSessionRoute "RSTUDIO_SESSION_ROUTE"

using namespace boost::placeholders;

namespace rstudio {
namespace core {

Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/gwt/GwtSymbolMaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@
#include <set>
#include <algorithm>

#include <boost/bind.hpp>
#include <boost/regex.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/bind/bind.hpp>

#include <core/Thread.hpp>
#include <core/RegexUtils.hpp>
#include <shared_core/SafeConvert.hpp>
#include <core/FileSerializer.hpp>

using namespace boost::placeholders;

// NOTE: this is a port of the following GWT class:
// (our rev was 11565, we should track to future changes)

Expand Down
4 changes: 2 additions & 2 deletions src/cpp/core/http/SocketProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@

#include <iostream>

#include <boost/bind.hpp>

#include <boost/asio/placeholders.hpp>
#include <boost/bind/bind.hpp>

#include <shared_core/Error.hpp>
#include <core/Log.hpp>

#include <core/http/SocketUtils.hpp>

using namespace rstudio::core;
using namespace boost::placeholders;

namespace rstudio {
namespace core {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/http/UriHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@

#include <algorithm>

#include <boost/bind.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/bind/bind.hpp>

#include <core/http/Request.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace http {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/include/core/Predicate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
#ifndef CORE_PREDICATE_HPP
#define CORE_PREDICATE_HPP

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

using namespace boost::placeholders;

namespace rstudio {
namespace core {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/include/core/http/AsyncUriHandler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
#include <vector>
#include <algorithm>

#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/variant.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/bind/bind.hpp>

#include <core/http/UriHandler.hpp>
#include <core/http/AsyncConnection.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace http {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/include/core/http/Message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
#include <vector>
#include <algorithm>

#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/utility.hpp>

using namespace boost::placeholders;

namespace RSTUDIO_BOOST_NAMESPACE {
namespace asio {
class const_buffer;
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/include/core/json/JsonRpc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,16 @@ struct is_error_code_enum<rstudio::core::json::errc::errc_t>

#include <string>

#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/optional.hpp>
#include <boost/unordered_map.hpp>
#include <boost/bind/bind.hpp>

#include <shared_core/Error.hpp>
#include <shared_core/json/Json.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace http {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/include/core/r_util/RSourceIndex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#include <string>
#include <vector>

#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/utility.hpp>
#include <boost/regex.hpp>
#include <boost/range/adaptors.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/bind/bind.hpp>

#include <core/Algorithm.hpp>
#include <shared_core/SafeConvert.hpp>
Expand All @@ -34,6 +34,8 @@
#include <core/r_util/RTokenizer.hpp>
#include <core/r_util/RFunctionInformation.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace r_util {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/include/core/text/TemplateFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
#include <string>
#include <map>

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

#include <boost/iostreams/filter/regex.hpp>

#include <core/StringUtils.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {

Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/markdown/MathJax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@

#include <algorithm>

#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/function.hpp>
#include <boost/algorithm/string.hpp>

#include <core/RegexUtils.hpp>
#include <core/system/System.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {

Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/r_util/RActiveSessions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <core/r_util/RActiveSessions.hpp>

#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/algorithm/string/predicate.hpp>

#include <core/StringUtils.hpp>
Expand All @@ -28,6 +28,8 @@

#define kSessionDirPrefix "session-"

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace r_util {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/r_util/RSourceIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
#include <core/r_util/RTokenizer.hpp>
#include <core/r_util/RTokenCursor.hpp>

#include <boost/bind.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/bind/bind.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/r_util/RVersionsPosix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <iostream>
#include <algorithm>

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

#include <core/Algorithm.hpp>
#include <core/FileSerializer.hpp>
Expand All @@ -33,6 +33,8 @@
#define kRScriptPath "Resources/bin/R"
#endif

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace r_util {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/spelling/HunspellCustomDictionaries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@

#include <core/spelling/HunspellCustomDictionaries.hpp>

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

#include <core/Algorithm.hpp>
#include <core/Log.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace spelling {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/spelling/HunspellDictionaryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
#include <core/spelling/HunspellDictionaryManager.hpp>
#include <core/system/Xdg.hpp>

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

#include <core/Algorithm.hpp>
#include <core/Log.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace spelling {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/system/ChildProcessSubprocPollTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@

#include "ChildProcessSubprocPoll.hpp"

#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/thread/thread.hpp>

#include <tests/TestThat.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace system {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/system/Environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@

#include <core/Algorithm.hpp>

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

#ifdef _WIN32
#define kPathSeparator ";"
#else
#define kPathSeparator ":"
#endif

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace system {
Expand Down
4 changes: 3 additions & 1 deletion src/cpp/core/system/PosixChildProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <sys/types.h>

#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>

#include <shared_core/Error.hpp>
#include <core/Log.hpp>
Expand All @@ -46,6 +46,8 @@

#include <core/PerformanceTimer.hpp>

using namespace boost::placeholders;

namespace rstudio {
namespace core {
namespace system {
Expand Down

0 comments on commit c8b78eb

Please sign in to comment.