[svn] commit: r2187 - in /trunk/src/lib/cc: ./ session.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Jun 21 02:21:38 UTC 2010
Author: jinmei
Date: Mon Jun 21 02:21:38 2010
New Revision: 2187
Log:
workaround for ASIO/stdblib interaction (trac #248, partially merged from branches/trac221)
Modified:
trunk/src/lib/cc/ (props changed)
trunk/src/lib/cc/session.cc
Modified: trunk/src/lib/cc/session.cc
==============================================================================
--- trunk/src/lib/cc/session.cc (original)
+++ trunk/src/lib/cc/session.cc Mon Jun 21 02:21:38 2010
@@ -19,6 +19,16 @@
#include <stdint.h>
+// XXX: there seems to be a strange dependency between ASIO and std library
+// definitions. On some platforms if we include std headers before ASIO
+// headers unexpected behaviors will happen.
+// A middle term solution is to generalize our local wrapper interface
+// (currently only available for the auth server), where all such portability
+// issues are hidden, and to have other modules use the wrapper.
+#include <asio.hpp>
+#include <asio/error_code.hpp>
+#include <asio/system_error.hpp>
+
#include <cstdio>
#include <vector>
#include <iostream>
@@ -28,10 +38,6 @@
#include <boost/bind.hpp>
#include <boost/function.hpp>
-
-#include <asio.hpp>
-#include <asio/error_code.hpp>
-#include <asio/system_error.hpp>
#include <exceptions/exceptions.h>
More information about the bind10-changes
mailing list