49 lines
854 B
Markdown
49 lines
854 B
Markdown
# t00016 - Unnamed enums and empty templates
|
|
## Config
|
|
```yaml
|
|
compilation_database_dir: ..
|
|
output_directory: puml
|
|
diagrams:
|
|
t00016_class:
|
|
type: class
|
|
glob:
|
|
- ../../tests/t00016/t00016.cc
|
|
using_namespace:
|
|
- clanguml::t00016
|
|
include:
|
|
namespaces:
|
|
- clanguml::t00016
|
|
|
|
```
|
|
## Source code
|
|
File t00016.cc
|
|
```cpp
|
|
namespace clanguml {
|
|
namespace t00016 {
|
|
|
|
template <typename> struct is_numeric {
|
|
enum { value = false };
|
|
};
|
|
|
|
template <> struct is_numeric<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<bool> {
|
|
enum { value = false };
|
|
};
|
|
}
|
|
}
|
|
|
|
```
|
|
## Generated UML diagrams
|
|

|