MSVC: [skip ci] make working with C++17 compiler
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
#ifndef WIN32
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
// avoid name collision with std::byte in C++17
|
||||
#define NOCRYPT
|
||||
#define NOGDI
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#pragma comment(lib,"winmm.lib")
|
||||
|
||||
5
src/3rdParty/salomesmesh/inc/GEOMUtils.hxx
vendored
5
src/3rdParty/salomesmesh/inc/GEOMUtils.hxx
vendored
@@ -106,8 +106,11 @@ namespace GEOMUtils
|
||||
* \brief Sort shapes in the list by their coordinates.
|
||||
* \param SL The list of shapes to sort.
|
||||
*/
|
||||
struct CompareShapes : public std::binary_function<TopoDS_Shape, TopoDS_Shape, bool>
|
||||
struct CompareShapes
|
||||
{
|
||||
typedef TopoDS_Shape first_argument_type;
|
||||
typedef TopoDS_Shape second_argument_type;
|
||||
typedef bool result_type;
|
||||
CompareShapes (bool isOldSorting)
|
||||
: myIsOldSorting(isOldSorting) {}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ class SMESH_EXPORT Unexpect { //save / retrieve unexpected exceptions treatment
|
||||
~Unexpect() { /*std::set_unexpected(old);*/ }
|
||||
#else
|
||||
Unexpect( PVF f )
|
||||
{ old = std::set_unexpected(f); }
|
||||
~Unexpect() { std::set_unexpected(old); }
|
||||
{ old = ::set_unexpected(f); }
|
||||
~Unexpect() { ::set_unexpected(old); }
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -1704,7 +1704,7 @@ void Application::init(int argc, char ** argv)
|
||||
std::signal(SIGSEGV,segmentation_fault_handler);
|
||||
std::signal(SIGABRT,segmentation_fault_handler);
|
||||
std::set_terminate(unhandled_exception_handler);
|
||||
std::set_unexpected(unexpection_error_handler);
|
||||
::set_unexpected(unexpection_error_handler);
|
||||
#elif defined(FC_OS_LINUX)
|
||||
std::signal(SIGSEGV,segmentation_fault_handler);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user