Skip to content

Renaming a using defined template type lose generic definition #2010

Open
@youknowone

Description

@youknowone

Input C/C++ Header

template <typename T, int N>
using array_field = T[N];

template <typename T, int N>
using renamed = array_field<T, N>;

Bindgen Invocation

$ bindgen array.hh -- -std=c++17

Actual Results

/* automatically generated by rust-bindgen 0.57.0 */

pub type array_field<T> = *mut T;
pub type renamed = array_field<T>;

Expected Results

/* automatically generated by rust-bindgen 0.57.0 */

pub type array_field<T> = *mut T;
pub type renamed<T> = array_field<T>;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions