Fixed template instantiations generation without known primary template

This commit is contained in:
Bartek Kryza
2021-07-20 19:35:47 +02:00
parent 0563a251fa
commit 524cf36ecd
10 changed files with 63 additions and 27 deletions

View File

@@ -13,11 +13,16 @@ diagrams:
include:
namespaces:
- clanguml::t00014
exclude:
namespaces:
- std
- clanguml::t00014::std
```
## Source code
```cpp
#include <algorithm>
#include <functional>
#include <ios>
#include <map>
#include <numeric>
@@ -46,6 +51,9 @@ template <typename T, typename P> struct A {
template <typename T> using AString = A<T, std::string>;
template <typename... T> using GeneralCallback = std::function<void(T..., int)>;
using VoidCallback = GeneralCallback<>;
struct B {
std::string value;
};
@@ -65,6 +73,8 @@ class R {
AStringString stringstring;
BVector bs;
BVector2 bs2;
GeneralCallback<AIntString> cb;
VoidCallback vcb;
};
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB