Added handling of anonymous nested enums

This commit is contained in:
Bartek Kryza
2021-05-03 11:11:16 +02:00
parent ed6bcf1c71
commit cff012ab7b
3 changed files with 45 additions and 18 deletions

View File

@@ -1,30 +1,24 @@
namespace clanguml {
namespace t00016 {
template <typename>
struct is_numeric {
enum { value = false };
template <typename> struct is_numeric {
enum { value = false };
};
template <>
struct is_numeric<char> {
enum { value = true };
template <> struct is_numeric<char> {
enum { value = true };
};
template <>
struct is_numeric<unsigned char> {
enum { value = true };
template <> struct is_numeric<unsigned char> {
enum { value = true };
};
template <>
struct is_numeric<int> {
enum { value = true };
template <> struct is_numeric<int> {
enum { value = true };
};
template <>
struct is_numeric<bool> {
enum { value = false };
template <> struct is_numeric<bool> {
enum { value = false };
};
}
}