Project

General

Profile

Actions

Bug #1351

closed

Doesn't compile with boost 1.50

Added by Anonymous almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
07/09/2012
Due date:
% Done:

0%

Estimated time:

Description

My toolchain: arch linux, boost 1.50, gcc 4.7.1, glibc 2.16.0


Files

log (18.2 KB) log Anonymous, 07/09/2012 03:38 AM
Actions #1

Updated by Wim Dumon almost 12 years ago

  • Status changed from New to Resolved

Just fixed this, will appear in git soon:

@@ -312,20 +312,20 @@ void DataStore::handleRequest(const Http::Request& request,
   s = request.getParameter("start");
   if (s)
     try {
       start = std::max(0, std::min(limit, boost::lexical_cast<int>(*s)));
     } catch (boost::bad_lexical_cast& e) {
-      LOG_ERROR("start '" << s << "' is not-a-number.");
+      LOG_ERROR("start '" << *s << "' is not-a-number.");
     }

   s = request.getParameter("limit");
   if (s)
     try {
       limit = std::max(0, std::min(limit - start,
                   boost::lexical_cast<int>(*s)));
     } catch (boost::bad_lexical_cast& e) {
-      LOG_ERROR("limit '" << s << "' is not-a-number.");
+      LOG_ERROR("limit '" << *s << "' is not-a-number.");
     }

   std::ostream& o = response.out();

   o << "{"

you'll also need to pach SocketNotifier.C:

@@ -312,20 +312,20 @@ void DataStore::handleRequest(const Http::Request& request,
   s = request.getParameter("start");
   if (s)
     try {
       start = std::max(0, std::min(limit, boost::lexical_cast<int>(*s)));
     } catch (boost::bad_lexical_cast& e) {
-      LOG_ERROR("start '" << s << "' is not-a-number.");
+      LOG_ERROR("start '" << *s << "' is not-a-number.");
     }

   s = request.getParameter("limit");
   if (s)
     try {
       limit = std::max(0, std::min(limit - start,
                   boost::lexical_cast<int>(*s)));
     } catch (boost::bad_lexical_cast& e) {
-      LOG_ERROR("limit '" << s << "' is not-a-number.");
+      LOG_ERROR("limit '" << *s << "' is not-a-number.");
     }

   std::ostream& o = response.out();

   o << "{"
Actions #2

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to Closed
  • Target version set to 3.2.3

Fixed in Wt 3.2.3 RC1.

Actions

Also available in: Atom PDF