aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/eax_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/eax_test.cpp')
-rw-r--r--doc/examples/eax_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/eax_test.cpp b/doc/examples/eax_test.cpp
index 18f981531..2e0790257 100644
--- a/doc/examples/eax_test.cpp
+++ b/doc/examples/eax_test.cpp
@@ -168,8 +168,6 @@ void run_tests(std::istream& in)
std::string algo;
std::string key;
- boost::regex vec_regex("^([ 0-9]{3}): (.*), (.*)$");
-
while(in.good())
{
std::string line;
@@ -187,6 +185,8 @@ void run_tests(std::istream& in)
}
else if(algo != "")
{
+ boost::regex vec_regex("^([ 0-9]{3}): (.*), (.*)$");
+
boost::smatch what;
if(boost::regex_match(line, what, vec_regex, boost::match_extra))