aboutsummaryrefslogtreecommitdiff
path: root/src/support/include_entity_resolver.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-22 21:07:16 +0200
committerAdrian Kummerländer2014-05-22 21:07:16 +0200
commit2c358ced7ca10ab37a382477d8b55fdb4e353f44 (patch)
tree7478370a0dfe8cb8329e028e55d5860b33d48509 /src/support/include_entity_resolver.h
parent4d0569669e01434b3bb9f689cd176f590344bea8 (diff)
downloadInputXSLT-2c358ced7ca10ab37a382477d8b55fdb4e353f44.tar
InputXSLT-2c358ced7ca10ab37a382477d8b55fdb4e353f44.tar.gz
InputXSLT-2c358ced7ca10ab37a382477d8b55fdb4e353f44.tar.bz2
InputXSLT-2c358ced7ca10ab37a382477d8b55fdb4e353f44.tar.lz
InputXSLT-2c358ced7ca10ab37a382477d8b55fdb4e353f44.tar.xz
InputXSLT-2c358ced7ca10ab37a382477d8b55fdb4e353f44.tar.zst
InputXSLT-2c358ced7ca10ab37a382477d8b55fdb4e353f44.zip
Replaced std::pair<bool, *> with the more convenient boost::optional<*>
* InputXSLT is dependent on boost anyway, so there is no argument to be made to emulate boost::optional using std::pair
Diffstat (limited to 'src/support/include_entity_resolver.h')
-rw-r--r--src/support/include_entity_resolver.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/support/include_entity_resolver.h b/src/support/include_entity_resolver.h
index b87e10f..1a3bbc1 100644
--- a/src/support/include_entity_resolver.h
+++ b/src/support/include_entity_resolver.h
@@ -4,6 +4,8 @@
#include <xercesc/sax/EntityResolver.hpp>
#include <xercesc/sax/InputSource.hpp>
+#include "boost/optional.hpp"
+
#include <string>
#include <vector>
@@ -20,7 +22,7 @@ class IncludeEntityResolver : public xercesc::EntityResolver {
const XMLCh* const
);
- std::pair<bool, boost::filesystem::path> resolve(const std::string&);
+ boost::optional<boost::filesystem::path> resolve(const std::string&);
private:
std::vector<FilesystemContext> path_;