summaryrefslogtreecommitdiff
path: root/project2/common/variableConvert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/variableConvert.cpp')
-rw-r--r--project2/common/variableConvert.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/project2/common/variableConvert.cpp b/project2/common/variableConvert.cpp
index 0681ed0..b3d3432 100644
--- a/project2/common/variableConvert.cpp
+++ b/project2/common/variableConvert.cpp
@@ -179,6 +179,10 @@ VariableType::operator const std::string &() const
{
return boost::apply_visitor(ConvertVisitorStdString(this), *this);
}
+VariableType::operator std::string_view() const
+{
+ return boost::apply_visitor(ConvertVisitorStdString(this), *this);
+}
VariableType::operator int() const
{
return boost::apply_visitor(ConvertVisitor<int>(this), *this);