Skip to content

Instantly share code, notes, and snippets.

@mcs07
mcs07 / boost-1.60.diff
Created April 21, 2016 18:22
Fix auto-pointer registration in Boost Python 1.60 from https://github.com/boostorg/python/pull/59
diff --git a/boost/python/object/class_metadata.hpp b/boost/python/object/class_metadata.hpp
index c71cf67..5009c17 100644
--- a/boost/python/object/class_metadata.hpp
+++ b/boost/python/object/class_metadata.hpp
@@ -164,7 +164,7 @@ struct class_metadata
>::type held_type;
// Determine if the object will be held by value
- typedef is_convertible<held_type*,T*> use_value_holder;
+ typedef mpl::bool_<is_convertible<held_type*,T*>::value> use_value_holder;
@mcs07
mcs07 / osra_lib.patch
Created March 5, 2017 14:46
Patch osra lib v2.1.0
diff --git a/src/osra_lib.cpp b/src/osra_lib.cpp
index 4262e83..48979ae 100644
--- a/src/osra_lib.cpp
+++ b/src/osra_lib.cpp
@@ -635,7 +635,7 @@ int osra_process_image(
if (type.empty() || type == "PDF" || type == "PS")
{
#ifdef OSRA_LIB
- poppler_doc = load_from_raw_data(image_data, image_length);
+ poppler_doc = poppler::document::load_from_raw_data(image_data, image_length);