Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Decided to change auto to string const interator
Browse files Browse the repository at this point in the history
  • Loading branch information
seigtm committed Jun 17, 2021
1 parent 12d4776 commit 12d25d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class BinaryEncryptionStrategy : public EncryptionStrategy
{
std::stringstream decoded;

for (auto segmentIterator{text.begin()}; segmentIterator != text.end(); segmentIterator += 8)
for (std::string::const_iterator segmentIterator{text.begin()}; segmentIterator != text.end(); segmentIterator += 8)
{
std::string segment(segmentIterator, segmentIterator + 8);
auto ASCII = std::stoull(segment, nullptr, 2);
Expand Down

0 comments on commit 12d25d1

Please sign in to comment.