Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive- * App: Fixes for MSVC permissive- * Gui: Fixes for MSVC permissive- * Main: Fixes for MSVC permissive- * Fem: Fixes for MSVC permissive- * Material: Fixes for MSVC permissive- * Part: Fixes for MSVC permissive- * Mesh: Fixes for MSVC permissive- * Points: Fixes for MSVC permissive- * Robot: Fixes for MSVC permissive- * TechDraw: Fixes for MSVC permissive- * Path: Fixes for MSVC permissive- * Core; Changes per review comments * TD: Revision from wandererfan * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2960,14 +2960,13 @@ void Application::LoadParameters()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// fix weird error while linking boost (all versions of VC)
|
||||
// VS2010: https://forum.freecad.org/viewtopic.php?f=4&t=1886&p=12553&hilit=boost%3A%3Afilesystem%3A%3Aget#p12553
|
||||
namespace boost { namespace program_options { std::string arg="arg"; } }
|
||||
namespace boost { namespace program_options {
|
||||
#if defined(_MSC_VER) && BOOST_VERSION < 108300
|
||||
// fix weird error while linking boost (all versions of VC)
|
||||
// VS2010: https://forum.freecad.org/viewtopic.php?f=4&t=1886&p=12553&hilit=boost%3A%3Afilesystem%3A%3Aget#p12553
|
||||
namespace boost { namespace program_options { std::string arg="arg"; } }
|
||||
namespace boost { namespace program_options {
|
||||
const unsigned options_description::m_default_line_length = 80;
|
||||
} }
|
||||
} }
|
||||
#endif
|
||||
|
||||
// A helper function to simplify the main part.
|
||||
|
||||
Reference in New Issue
Block a user