Re: [C++-sig] Linking issues with Boost.Python 1.69.0, Python 2.7, MSVC 14.0

2019-03-27 Thread Stefan Ring
On Tue, Mar 26, 2019 at 3:27 PM Sarah Rust wrote: > > Hello! > > I have been trying to build and link the latest Boost.Python to work with > Python 2.7 and my Visual Studio 2015 project (MSVC 14.0) with x64 > configuration. I've added the Boost library and Boost include directory to my > projec

[C++-sig] argument conversion of numpy.int64 to double

2019-03-27 Thread Pavol Juhas
Hello, After wrapping a simple C++ function of a double argument with boost python, I have noticed it crashes when called from Python with a numpy.int64 value. This is a likely situation, for example when evaluated for values from numpy.arange. Please see below for a minimum example. Is there so