Есть вот такая структура, типы с py:: — из pybind11-неймспейса.
struct csection_set_cfg {
typedef mprog_t::opc_t opcode;
std::vector<std::string> ptinfo, bginfo;
float max_energy;
std::vector<mprog_t> progs;
std::vector<float> cffts, points, cstabs, rates, tabs;
std::map<uint16_t, py::tuple> dset;
uint8_t tsize, ntype;
uint8_t ncsect, nprog;
csection_set_cfg
(py::str, py::str, std::vector<py::dict>, float, py::dict);
};
./g++ -std=c++20 -fPIC -O3 -Wall -Wpedantic -fopenmp -Waggressive-loop-optimizations -c def_csections.cxx -I. -I./fmt/include
In file included from def_csections.cxx:1:
def_csections.hxx:21:8: warning: ‘csection_set_cfg’ declared with greater visibility than the type of its field ‘csection_set_cfg::dset’ [-Wattributes]
21 | struct csection_set_cfg {
| ^~~~~~~~~~~~~~~~