Commit 9fc46cef authored by Gemma Guest's avatar Gemma Guest
Browse files

Suppress compiler warning from boost

We pass the correct type of size_t to raw_function but internally it
then uses it as an int, giving a compiler warning we can do nothing
parent cc1c799e
......@@ -184,9 +184,17 @@ void export_leaf_classes() {
"Algorithm", "Base class for all algorithms")
.def("fromString", &Algorithm::fromString, "Initialize the algorithm from a string representation")
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4267) // Disable warning regarding conversion of size_t
// to int within raw_function, which we can do nothing about
.def("createChildAlgorithm", raw_function(&createChildWithProps, std::size_t(1)),
"Creates and intializes a named child algorithm. Output workspaces "
"are given a dummy name.")
#ifdef _MSC_VER
#pragma warning(pop)
.def("declareProperty", (declarePropertyType1)&PythonAlgorithm::declarePyAlgProperty,
declarePropertyType1_Overload((arg("self"), arg("prop"), arg("doc") = "")))
.def("enableHistoryRecordingForChild", &Algorithm::enableHistoryRecordingForChild, (arg("self"), arg("on")),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment