aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-20 03:37:57 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-20 03:37:57 +0300
commitbd2e96ea837beb5e54f50dd4fedbb247e5ccd1a1 (patch)
treeedc9cc8756f13c07f58d4d1a2bf08c9b9985d070 /include/pdb
parenti have no idea how this compiled (diff)
downloadwinapi-debug-bd2e96ea837beb5e54f50dd4fedbb247e5ccd1a1.tar.gz
winapi-debug-bd2e96ea837beb5e54f50dd4fedbb247e5ccd1a1.zip
code style
Diffstat (limited to '')
-rw-r--r--include/pdb/address.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pdb/address.hpp b/include/pdb/address.hpp
index 33e0ac3..4a62249 100644
--- a/include/pdb/address.hpp
+++ b/include/pdb/address.hpp
@@ -20,4 +20,12 @@ namespace pdb
oss << std::hex << std::showbase << address;
return oss.str();
}
+
+ inline bool parse_address(Address& dest, const std::string& src)
+ {
+ std::istringstream iss{src};
+ iss >> std::hex;
+ char c;
+ return iss >> dest && !iss.get(c);
+ }
}