Debian Codegraph @

src/pycolmap/feature/opaque_types.h

raw
1 #pragma once
2
3 // This header declares opaque types for pybind11 vector bindings.
4 // It MUST be included before <pybind11/stl.h> in any translation unit
5 // that uses FeatureKeypoints or FeatureMatches to avoid ODR violations.
6
7 #include "colmap/feature/types.h"
8
9 #include <pybind11/pybind11.h>
10
11 PYBIND11_MAKE_OPAQUE(colmap::FeatureKeypoints);
12 PYBIND11_MAKE_OPAQUE(colmap::FeatureMatches);