Open isbest opened 2 months ago
#pragma once #include <stdint.h> #include <string.h> #include <string.h> namespace hello { template <typename T, std::size_t N> struct Array final { using iterator = T *; using size_type = std::size_t; void fill(const T &u) {} constexpr Array() { this->len = 0; } iterator begin() noexcept {} private: T container[N]; size_type len; }; void test_template_array(Array<int, 10> &arr); } }
I hacked bindgen ir mod, and this function sig TemplateInstantiation can not found 10 in Array<int, 10>
Array<int, 10>
i want to got test_template_array func correctly
Input C/C++ Header
Bindgen Invocation
I hacked bindgen ir mod, and this function sig TemplateInstantiation can not found 10 in
Array<int, 10>
Expected Results
i want to got test_template_array func correctly