quantopian / libpy

Utilities for writing C++ extension modules.
https://quantopian.github.io/libpy/
Apache License 2.0
82 stars 27 forks source link

Consider adding optional headers for abseil #172

Open gerrymanoim opened 4 years ago

gerrymanoim commented 4 years ago

#include <libpy/abseil_support.h> if you were using abseil, but otherwise unused.

Any other libs to support?

llllllllll commented 4 years ago

It might be worth adding support for some of the Boost containers. I think that we should add a section on the docs showing py::dispatch::map_to_object (and some of the other helpers) to add a to_object adapter to arbitrary mapping types.

gerrymanoim commented 4 years ago

We should also deal with sparsehash, make it optional and add it to a similar _support.h header.

llllllllll commented 4 years ago

Maybe we should have a library_converters dir like: library_converters/abseil.h and library_converters/sparsehash.h.