mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Enforce template syntax typename
over class
This commit is contained in:
parent
aef11a1427
commit
9903e6779b
101 changed files with 538 additions and 538 deletions
|
@ -41,7 +41,7 @@ struct VariantConstructData {
|
|||
|
||||
static LocalVector<VariantConstructData> construct_data[Variant::VARIANT_MAX];
|
||||
|
||||
template <class T>
|
||||
template <typename T>
|
||||
static void add_constructor(const Vector<String> &arg_names) {
|
||||
ERR_FAIL_COND_MSG(arg_names.size() != T::get_argument_count(), "Argument names size mismatch for " + Variant::get_type_name(T::get_base_type()) + ".");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue