Boost logo

Boost Users :

Subject: Re: [Boost-users] Problems compiling with Boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-08 14:56:31


AMDG

Carla Strembicke wrote:
> I have it in my header file (Common/Src/shmem.h) where I declare an boost interprocess object.
>
>
> #include <boost/interprocess/shared_memory_object.hpp>
> #include <boost/interprocess/mapped_region.hpp>
> #include <boost/interprocess/file_mapping.hpp>
> using namespace boost::interprocess;
>

That's probably your problem. It's generally a bad idea to
put using directives in header files. If you don't want to
type out boost::interprocess:: everywhere, use a namespace alias.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net