Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6147: message_queue sample fails to compile in 32-bit
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-18 19:42:20
#6147: message_queue sample fails to compile in 32-bit
---------------------------------------------+------------------------------
Reporter: Graham Perks <graham@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.48.0 | Severity: Regression
Resolution: | Keywords:
---------------------------------------------+------------------------------
Comment (by Graham Perks <graham@â¦>):
Retry code formatting. It's the sample from the boost docs.
{{{
#define BOOST_DATE_TIME_NO_LIB
#include <boost/interprocess/ipc/message_queue.hpp>
#include <iostream>
#include <vector>
using namespace boost::interprocess;
int main ()
{
try{
//Erase previous message queue
message_queue::remove("message_queue");
//Create a message_queue.
message_queue mq
(create_only //only create
,"message_queue" //name
,100 //max message number
,sizeof(int) //max message size
);
//Send 100 numbers
for(int i = 0; i < 100; ++i){
mq.send(&i, sizeof(i), 0);
}
}
catch(interprocess_exception &ex){
std::cout << ex.what() << std::endl;
return 1;
}
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6147#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC