Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74130 - in sandbox/mmap/boost/mmap/mappble_objects: file/posix file/win32 shared_memory/posix shared_memory/win32
From: dsaritz_at_[hidden]
Date: 2011-08-29 10:39:19


Author: psiha
Date: 2011-08-29 10:39:16 EDT (Mon, 29 Aug 2011)
New Revision: 74130
URL: http://svn.boost.org/trac/boost/changeset/74130

Log:
Changed all flags_t typedefs to use the int type in order to silence MSVC's signed-unsigned warnings.
Text files modified:
   sandbox/mmap/boost/mmap/mappble_objects/file/posix/mapping_flags.hpp | 2 +-
   sandbox/mmap/boost/mmap/mappble_objects/file/posix/open_flags.hpp | 2 +-
   sandbox/mmap/boost/mmap/mappble_objects/file/win32/mapping_flags.hpp | 2 +-
   sandbox/mmap/boost/mmap/mappble_objects/file/win32/open_flags.hpp | 10 +---------
   sandbox/mmap/boost/mmap/mappble_objects/shared_memory/posix/flags.hpp | 2 +-
   sandbox/mmap/boost/mmap/mappble_objects/shared_memory/win32/flags.hpp | 2 +-
   6 files changed, 6 insertions(+), 14 deletions(-)

Modified: sandbox/mmap/boost/mmap/mappble_objects/file/posix/mapping_flags.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/mappble_objects/file/posix/mapping_flags.hpp (original)
+++ sandbox/mmap/boost/mmap/mappble_objects/file/posix/mapping_flags.hpp 2011-08-29 10:39:16 EDT (Mon, 29 Aug 2011)
@@ -32,7 +32,7 @@
 
 struct posix;
 
-typedef unsigned flags_t;
+typedef int flags_t;
 
 template <>
 struct file_mapping_flags<posix>

Modified: sandbox/mmap/boost/mmap/mappble_objects/file/posix/open_flags.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/mappble_objects/file/posix/open_flags.hpp (original)
+++ sandbox/mmap/boost/mmap/mappble_objects/file/posix/open_flags.hpp 2011-08-29 10:39:16 EDT (Mon, 29 Aug 2011)
@@ -30,7 +30,7 @@
 
 template <typename Impl> struct file_open_flags;
 
-typedef unsigned int flags_t;
+typedef int flags_t;
 
 // Implementation note:
 // Using structs with public members and factory functions to enable (almost)

Modified: sandbox/mmap/boost/mmap/mappble_objects/file/win32/mapping_flags.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/mappble_objects/file/win32/mapping_flags.hpp (original)
+++ sandbox/mmap/boost/mmap/mappble_objects/file/win32/mapping_flags.hpp 2011-08-29 10:39:16 EDT (Mon, 29 Aug 2011)
@@ -29,7 +29,7 @@
 
 struct win32;
 
-typedef unsigned flags_t;
+typedef int flags_t;
 
 template <>
 struct file_mapping_flags<win32>

Modified: sandbox/mmap/boost/mmap/mappble_objects/file/win32/open_flags.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/mappble_objects/file/win32/open_flags.hpp (original)
+++ sandbox/mmap/boost/mmap/mappble_objects/file/win32/open_flags.hpp 2011-08-29 10:39:16 EDT (Mon, 29 Aug 2011)
@@ -29,15 +29,7 @@
 
 template <typename Impl> struct file_open_flags;
 
-// Implementation note:
-// Using structs with public members and factory functions to enable (almost)
-// zero-overhead 'link-time' conversion to native flag formats and to allow the
-// user to modify the created flags or create fully custom ones so that specific
-// platform-dependent use-cases, not otherwise covered through the generic
-// interface, can also be covered.
-// (10.10.2010.) (Domagoj Saric)
-
-typedef unsigned flags_t;
+typedef int flags_t;
 
 template <>
 struct file_open_flags<win32>

Modified: sandbox/mmap/boost/mmap/mappble_objects/shared_memory/posix/flags.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/mappble_objects/shared_memory/posix/flags.hpp (original)
+++ sandbox/mmap/boost/mmap/mappble_objects/shared_memory/posix/flags.hpp 2011-08-29 10:39:16 EDT (Mon, 29 Aug 2011)
@@ -31,7 +31,7 @@
 
 struct posix;
 
-typedef unsigned flags_t;
+typedef int flags_t;
 
 template <>
 struct shared_memory_flags<posix> : file_mapping_flags<posix>

Modified: sandbox/mmap/boost/mmap/mappble_objects/shared_memory/win32/flags.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/mappble_objects/shared_memory/win32/flags.hpp (original)
+++ sandbox/mmap/boost/mmap/mappble_objects/shared_memory/win32/flags.hpp 2011-08-29 10:39:16 EDT (Mon, 29 Aug 2011)
@@ -30,7 +30,7 @@
 
 struct win32;
 
-typedef unsigned flags_t;
+typedef int flags_t;
 
 template <>
 struct shared_memory_flags<win32> : file_mapping_flags<win32>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk