aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/stl_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/stl_util.h')
-rw-r--r--src/lib/utils/stl_util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/utils/stl_util.h b/src/lib/utils/stl_util.h
index 06f09498e..76cf77ef8 100644
--- a/src/lib/utils/stl_util.h
+++ b/src/lib/utils/stl_util.h
@@ -16,8 +16,7 @@ namespace Botan {
inline std::vector<byte> to_byte_vector(const std::string& s)
{
- return std::vector<byte>(reinterpret_cast<const byte*>(&s[0]),
- reinterpret_cast<const byte*>(&s[s.size()]));
+ return std::vector<byte>(s.cbegin(), s.cend());
}
/*