From 203cccd687b457839fdf5c2b15055d71777d397d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Mon, 27 Mar 2017 11:56:08 +0200 Subject: [PATCH] Add missing static kind function --- include/cppast/cpp_variable_template.hpp | 2 ++ src/cpp_variable_template.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/cppast/cpp_variable_template.hpp b/include/cppast/cpp_variable_template.hpp index af00c7e..a74bf34 100644 --- a/include/cppast/cpp_variable_template.hpp +++ b/include/cppast/cpp_variable_template.hpp @@ -14,6 +14,8 @@ namespace cppast class cpp_variable_template final : public cpp_template { public: + static cpp_entity_kind kind() noexcept; + /// Builder for [cppast::cpp_variable_template](). class builder : public basic_builder { diff --git a/src/cpp_variable_template.cpp b/src/cpp_variable_template.cpp index 7268cdc..95f9ca9 100644 --- a/src/cpp_variable_template.cpp +++ b/src/cpp_variable_template.cpp @@ -8,7 +8,12 @@ using namespace cppast; -cpp_entity_kind cpp_variable_template::do_get_entity_kind() const noexcept +cpp_entity_kind cpp_variable_template::kind() noexcept { return cpp_entity_kind::variable_template_t; } + +cpp_entity_kind cpp_variable_template::do_get_entity_kind() const noexcept +{ + return kind(); +}