Skip to content

Commit

Permalink
Fix wrong assert macro in util/paths.h
Browse files Browse the repository at this point in the history
We need to replace the assert definition that Boost defines with our version,
otherwise code that includes this header won't work.
  • Loading branch information
Tad Marshall committed Mar 24, 2012
1 parent 982d585 commit 691d785
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mongo/util/paths.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <fcntl.h>

#include <boost/filesystem/path.hpp>
// Boost defines assert, we need our version
#undef assert
#define assert MONGO_assert

namespace mongo {

Expand Down

0 comments on commit 691d785

Please sign in to comment.