]> git.lyx.org Git - lyx.git/blobdiff - src/counters.C
fix reading the author field.
[lyx.git] / src / counters.C
index 851b87e0574743596037cc26267aa459d29215cf..657c28e2251f87946798b47d8a61ec11d7e2f799 100644 (file)
 #include "debug.h"
 
 #include "support/lstrings.h"
-#include "support/std_sstream.h"
 #include "support/tostr.h"
 
 #include <boost/assert.hpp>
 
+#include <sstream>
+
 using std::endl;
 using std::ostringstream;
 using std::string;
@@ -289,7 +290,9 @@ string Counters::counterLabel(string const & format)
 {
        string label = format;
        while (true) {
+#ifdef WITH_WARNINGS
 #warning Using boost::regex would make this code a lot simpler... (Lgb)
+#endif
 
                size_t const i = label.find('\\', 0);
                if (i == string::npos)