]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Made Ipc::StoreMap::Shared public to make ICC compiler happier.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Sep 2011 20:07:28 +0000 (14:07 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Sep 2011 20:07:28 +0000 (14:07 -0600)
Ipc::StoreMap class kids need access to Shared::SharedMemorySize (at least) so
the Shared type declaration should be at least protected. Made it public
because the currently public Ipc::StoreMap::Owner typedef uses it.

src/ipc/StoreMap.h

index 54138cfad9a1490264fed7b575047480d0e92df6..9a01a9349e2d17959331596002173c6291ecd316 100644 (file)
@@ -55,8 +55,9 @@ class StoreMap
 public:
     typedef StoreMapSlot Slot;
 
-private:
-    struct Shared {
+    /// data shared across maps in different processes
+    class Shared {
+    public:
         Shared(const int aLimit, const size_t anExtrasSize);
         size_t sharedMemorySize() const;
         static size_t SharedMemorySize(const int limit, const size_t anExtrasSize);