Include Pybind11 headers before anything else

See https://github.com/NVIDIA/nvbench/pull/237#discussion_r2183703828
for the rationale
This commit is contained in:
Oleksandr Pavlyk
2025-07-21 09:40:35 -05:00
parent 6b1b2f3c30
commit 8c112d529f

View File

@@ -16,6 +16,12 @@
* limitations under the License.
*/
// clang-format off
// Include Pybind11 headers first thing
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
// clang-format on
#include <nvbench/nvbench.cuh>
#include <cstdio>
@@ -27,9 +33,6 @@
#include <utility>
#include <vector>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
namespace