Boost logo

Boost :

From: Ion Gaztañaga (ion_g_m_at_[hidden])
Date: 2005-06-01 09:46:35


Thanks for the props!

 I will try to use gcc 3.3 in linux to detect this type of warnings. It is
just that I always rely (wrongly) on typedef inheritance when using
templates, so I will have a look. For the next snapshot I plan better
documentation and shmem::deque. However, my main concern is to have a
portable shared memory management between posix (shm_open, shm_ulink,
shm_close) and Win32. For the moment I have no solution to this, and I have
looked into several open source libraries to take ideas, but apart from
using memory mapped files, I don't see any solution.

  Does anyone know a portable shared memory implementation that behaves
equally (I mean, when creating and destroying) in Win32 and Unix?

Regards,

 Ion

----- Original Message -----
From: "Caleb Epstein" <caleb.epstein_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, May 31, 2005 8:44 PM
Subject: Re: [boost] [shmem] New Shmem snapshot available in boost vault

> Ion,
>
> I've just started playing with this library. Very nice work, and the
> documentation is very complete and well written. A couple of things
> for the next release:
>
> * Some parts depend on unordered-snapshot.tar.gz in the vault
> * Some compiler warnings from g++ 3.3.4 on Linux. The fixes are as
> suggested by the compiler:
>
> g++ -pthread -g -I/home/ietdev/tools/linux-i686/boost-1.32.0
> -I../../../.. -I/home/nbde52d/src/unordered -D_REENTRANT
> -L/home/ietdev/tools/linux-i686/boost-1.32.0/lib
> -Wl,-rpath,/home/ietdev/tools/linux-i686/boost-1.32.0/lib -o
> ../../bin/linux/test_shmem_tree_test.out
> ../../test/shmem_tree_test.cpp -lboost_thread-gcc-mt
> In file included from ../../../../boost/shmem/containers/shmem_set.hpp:53,
> from ../../test/shmem_tree_test.cpp:20:
> ../../../../boost/shmem/containers/shmem_tree.hpp:496: warning: lookup of
> `
> reference' finds `typedef typename
> boost::shmem::detail::rb_tree_base<Value,
> Alloc>::value_ref_t boost::shmem::detail::rb_tree<Key, Value,
> KeyOfValue,
> Compare, Alloc>::reference'
> ../../../../boost/shmem/containers/shmem_tree.hpp:496: warning: instead
> of `
> boost::shmem::detail::rb_tree<Key, Value, KeyOfValue, Compare,
> Alloc>::const_iterator::reference' from dependent base class
> ../../../../boost/shmem/containers/shmem_tree.hpp:496: warning: (use
> `typename const_iterator::reference' if that's what you meant)
> ../../../../boost/shmem/containers/shmem_tree.hpp:499: warning: lookup of
> `
> pointer' finds `typedef typename
> boost::shmem::detail::rb_tree_base<Value,
> Alloc>::value_ptr_t boost::shmem::detail::rb_tree<Key, Value,
> KeyOfValue,
> Compare, Alloc>::pointer'
> ../../../../boost/shmem/containers/shmem_tree.hpp:499: warning: instead
> of `
> boost::shmem::detail::rb_tree<Key, Value, KeyOfValue, Compare,
> Alloc>::const_iterator::pointer' from dependent base class
> ../../../../boost/shmem/containers/shmem_tree.hpp:499: warning: (use
> `typename const_iterator::pointer' if that's what you meant)
> ../../../../boost/shmem/containers/shmem_tree.hpp: In member function
> `typename
> boost::shmem::detail::rb_tree_base<Value, Alloc>::value_ptr_t
> boost::shmem::detail::rb_tree<Key, Value, KeyOfValue, Compare,
> Alloc>::const_iterator::operator->() const':
> ../../../../boost/shmem/containers/shmem_tree.hpp:500: warning: lookup of
> `
> pointer' finds `typedef typename
> boost::shmem::detail::rb_tree_base<Value,
> Alloc>::value_ptr_t boost::shmem::detail::rb_tree<Key, Value,
> KeyOfValue,
> Compare, Alloc>::pointer'
> ../../../../boost/shmem/containers/shmem_tree.hpp:500: warning: instead
> of `
> boost::shmem::detail::rb_tree<Key, Value, KeyOfValue, Compare,
> Alloc>::const_iterator::pointer' from dependent base class
> ../../../../boost/shmem/containers/shmem_tree.hpp:500: warning: (use
> `typename const_iterator::pointer' if that's what you meant)
>
> --
> Caleb Epstein
> caleb dot epstein at gmail dot com
>
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk