Fixed rendering of member variables with alias to template or alias template (t00014)
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <algorithm>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
namespace clanguml {
|
||||
@@ -190,6 +191,9 @@ bool contains(const T &container, const E &element)
|
||||
[&element](const auto &e) { return *e == *element; }) !=
|
||||
container.end();
|
||||
}
|
||||
else if constexpr (std::is_same_v<std::remove_cv_t<T>, std::string>) {
|
||||
return container.find(element) != std::string::npos;
|
||||
}
|
||||
else {
|
||||
return std::find(container.begin(), container.end(), element) !=
|
||||
container.end();
|
||||
|
||||
Reference in New Issue
Block a user