aboutsummaryrefslogtreecommitdiff
path: root/src/support/type/xobject_value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/type/xobject_value.cc')
-rw-r--r--src/support/type/xobject_value.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/support/type/xobject_value.cc b/src/support/type/xobject_value.cc
index 2fe4f9f..959da94 100644
--- a/src/support/type/xobject_value.cc
+++ b/src/support/type/xobject_value.cc
@@ -52,6 +52,17 @@ boost::filesystem::path XObjectValue::get<boost::filesystem::path>(
}
template <>
+boost::optional<boost::filesystem::path>
+XObjectValue::get<boost::optional<boost::filesystem::path>>(
+ const xalan::XObjectPtr& ptr) const {
+ if ( ptr.null() ) {
+ return boost::optional<boost::filesystem::path>();
+ } else {
+ return this->get<boost::filesystem::path>(ptr);
+ }
+}
+
+template <>
xalan::XObjectPtr XObjectValue::get<xalan::XObjectPtr>(
const xalan::XObjectPtr& ptr) const {
return ptr;