Avoid ODR violation for `type_caster<mamba::fs::u8path>` (#3903)

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
This commit is contained in:
Julien Jerphanion 2025-05-13 19:54:06 +02:00 committed by GitHub
parent cadd3c9e06
commit c3681db47f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,9 @@
//
// The full license is in the file LICENSE, distributed with this software.
#ifndef LIBMAMBAPY_PATH_CASTER_HPP
#define LIBMAMBAPY_PATH_CASTER_HPP
#include <pybind11/pybind11.h>
#include <pybind11/stl/filesystem.h>
@ -19,3 +22,5 @@ namespace PYBIND11_NAMESPACE
};
}
}
#endif

View File

@ -26,6 +26,7 @@
#include "bindings.hpp"
#include "expected_caster.hpp"
#include "flat_set_caster.hpp"
#include "path_caster.hpp"
#include "weakening_map_bind.hpp"
using OldVersionPart = std::vector<mamba::specs::VersionPartAtom>;

View File

@ -13,6 +13,7 @@
#include <pybind11/stl_bind.h>
#include "bind_utils.hpp"
#include "path_caster.hpp"
namespace mambapy
{