diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-20 03:37:57 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-20 03:37:57 +0300 |
commit | bd2e96ea837beb5e54f50dd4fedbb247e5ccd1a1 (patch) | |
tree | edc9cc8756f13c07f58d4d1a2bf08c9b9985d070 /include | |
parent | i have no idea how this compiled (diff) | |
download | winapi-debug-bd2e96ea837beb5e54f50dd4fedbb247e5ccd1a1.tar.gz winapi-debug-bd2e96ea837beb5e54f50dd4fedbb247e5ccd1a1.zip |
code style
Diffstat (limited to 'include')
-rw-r--r-- | include/pdb/address.hpp | 8 |
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); + } } |