Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
Gauthier Quesnel
irritator
Commits
24457c11
Commit
24457c11
authored
Aug 24, 2020
by
Gauthier Quesnel
Browse files
core: fix type of enum class size functions
parent
52f70751
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/core.hpp
View file @
24457c11
...
...
@@ -190,10 +190,16 @@ enum class status
io_file_format_dynamics_init_error
};
constexpr
size_t
constexpr
i8
status_last
()
noexcept
{
return
static_cast
<
i8
>
(
status
::
io_file_format_dynamics_init_error
);
}
constexpr
sz
status_size
()
noexcept
{
return
static_cast
<
int
>
(
status
::
io_file_format_dynamics_init_error
)
+
1
;
return
static_cast
<
sz
>
(
status
_last
(
)
+
1
)
;
}
constexpr
bool
...
...
@@ -2759,9 +2765,15 @@ enum class dynamics_type : i8
};
constexpr
i8
dynamics_type_last
()
noexcept
{
return
static_cast
<
i8
>
(
dynamics_type
::
flow
);
}
constexpr
sz
dynamics_type_size
()
noexcept
{
return
static_cast
<
i8
>
(
dynamics_type
::
flow
)
+
1
;
return
static_cast
<
sz
>
(
dynamics_type
_last
(
)
+
1
)
;
}
struct
model
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment