Skip to content

Commit

Permalink
fix #503 Boost 1.77 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software committed Aug 31, 2021
1 parent 1a26473 commit 7f2ae0a
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,9 @@

- [#496](http://github.com/Nelson-numerical-software/nelson/issues/496): Eigen 3.4 used.

- [#503](http://github.com/Nelson-numerical-software/nelson/issues/503): Boost 1.77 support (default on Windows).


# 0.5.8 (2021-08-25)

## Features:
Expand Down
2 changes: 1 addition & 1 deletion bin/bin.iss
Expand Up @@ -25,7 +25,7 @@
;==============================================================================
Source: {#RootPath}bin\{#BinPath}\readme.txt; DestDir: {app}\bin\{#BinPath}\
;==============================================================================
; Boost 1.71
; Boost 1.77
;==============================================================================
Source: {#RootPath}bin\{#BinPath}\boost_chrono-{#BOOST_TARGET}.dll; DestDir: {app}\bin\{#BinPath}\;
Source: {#RootPath}bin\{#BinPath}\boost_date_time-{#BOOST_TARGET}.dll; DestDir: {app}\bin\{#BinPath}\;
Expand Down
Expand Up @@ -25,8 +25,10 @@
//=============================================================================
#pragma once
//=============================================================================
#include "nlsFiles_folders_functions_exports.h"
#include <string>
#include "nlsFiles_folders_functions_exports.h"
//=============================================================================
#undef RemoveDirectory
//=============================================================================
namespace Nelson {
NLSFILES_FOLDERS_FUNCTIONS_IMPEXP bool
Expand Down
2 changes: 1 addition & 1 deletion modules/help_browser/src/cpp/HelpBrowser.cpp
Expand Up @@ -236,7 +236,7 @@ HelpBrowser::clearCache()
closeBrowser();
std::wstring cachePath = getCachePath();
std::wstring msgError = L"";
Nelson::RemoveDirectory(cachePath, true, msgError);
RemoveDirectory(cachePath, true, msgError);
}
//=============================================================================
std::wstring
Expand Down
1 change: 1 addition & 0 deletions modules/mex/src/cpp/Engine.cpp
Expand Up @@ -30,6 +30,7 @@
//=============================================================================
#include <string>
#include <stdlib.h>
#include <algorithm>
#include <boost/process.hpp>
#include <boost/thread/thread.hpp>
#include <boost/process/async.hpp>
Expand Down
5 changes: 3 additions & 2 deletions modules/text_completion/src/cpp/FileCompleter.cpp
Expand Up @@ -23,12 +23,13 @@
// License along with this program. If not, see <http://www.gnu.org/licenses/>.
// LICENCE_BLOCK_END
//=============================================================================
#include "FileCompleter.hpp"
#include <algorithm>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/regex.hpp>
#include "FileCompleter.hpp"
//=============================================================================
namespace Nelson {
//=============================================================================
Expand Down Expand Up @@ -165,7 +166,7 @@ FileCompleter(const std::wstring& prefix)
size_t pos1 = prefix.rfind(L'/');
size_t pos2 = prefix.rfind(L'\\');
if (pos1 != std::wstring::npos && pos2 != std::wstring::npos) {
pos = std::max(pos1, pos2);
pos = max(pos1, pos2);
} else {
if (pos1 != std::wstring::npos) {
pos = pos1;
Expand Down
8 changes: 4 additions & 4 deletions modules/types/src/include/nlsConfig.h
Expand Up @@ -42,15 +42,15 @@
#ifdef _MSC_VER
#ifdef _DEBUG
#ifdef _WIN64
#define BOOST_TARGET "vc142-mt-gd-x64-1_75"
#define BOOST_TARGET "vc142-mt-gd-x64-1_77"
#else
#define BOOST_TARGET "vc142-mt-gd-x32-1_75"
#define BOOST_TARGET "vc142-mt-gd-x32-1_77"
#endif
#else
#ifdef _WIN64
#define BOOST_TARGET "vc142-mt-x64-1_75"
#define BOOST_TARGET "vc142-mt-x64-1_77"
#else
#define BOOST_TARGET "vc142-mt-x32-1_75"
#define BOOST_TARGET "vc142-mt-x32-1_77"
#endif
#endif
#endif
Expand Down
8 changes: 4 additions & 4 deletions tools/innosetup/Nelson.iss
Expand Up @@ -43,15 +43,15 @@
#endif
#ifdef NELSON_X64
#ifdef NELSON_DEBUG
#define BOOST_TARGET "vc142-mt-gd-x64-1_75"
#define BOOST_TARGET "vc142-mt-gd-x64-1_77"
#else
#define BOOST_TARGET "vc142-mt-x64-1_75"
#define BOOST_TARGET "vc142-mt-x64-1_77"
#endif
#else
#ifdef NELSON_DEBUG
#define BOOST_TARGET "vc142-mt-gd-x32-1_75"
#define BOOST_TARGET "vc142-mt-gd-x32-1_77"
#else
#define BOOST_TARGET "vc142-mt-x32-1_75"
#define BOOST_TARGET "vc142-mt-x32-1_77"
#endif
#endif
;==============================================================================
Expand Down

0 comments on commit 7f2ae0a

Please sign in to comment.