mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Fixed most tab and min/max issues from trunk inspection report
[SVN r53141]
This commit is contained in:
@@ -744,4 +744,4 @@ struct has_trivial_destructor_after_move
|
||||
} //namespace interprocess {
|
||||
} //namespace boost {
|
||||
|
||||
#endif //#ifndef BOOST_INTERPROCESS_MOVE_HPP
|
||||
#endif //#ifndef BOOST_INTERPROCESS_MOVE_HPP
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
# define BOOST_INTERPROCESS_POSIX_PROCESS_SHARED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#if ((_POSIX_BARRIERS - 0) > 0)
|
||||
# define BOOST_INTERPROCESS_POSIX_BARRIERS
|
||||
# endif
|
||||
|
||||
@@ -247,12 +247,9 @@ inline mapped_region::mapped_region
|
||||
error_info err(winapi::get_last_error());
|
||||
throw interprocess_exception(err);
|
||||
}
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
if(static_cast<unsigned __int64>(total_size) >
|
||||
std::numeric_limits<std::size_t>::max()){
|
||||
(std::numeric_limits<std::size_t>::max)()){
|
||||
error_info err(size_error);
|
||||
throw interprocess_exception(err);
|
||||
}
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
#include <string>
|
||||
#include "get_process_id_name.hpp"
|
||||
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
// This example tests the process shared message queue. //
|
||||
@@ -60,7 +56,7 @@ bool test_priority_order()
|
||||
mq1.send(&tstamp, sizeof(tstamp), (unsigned int)(i%10));
|
||||
}
|
||||
|
||||
unsigned int priority_prev = std::numeric_limits<unsigned int>::max();
|
||||
unsigned int priority_prev = (std::numeric_limits<unsigned int>::max)();
|
||||
std::size_t tstamp_prev = 0;
|
||||
|
||||
//Receive all messages and test those are ordered
|
||||
|
||||
Reference in New Issue
Block a user