Robert Ramey | 1 Oct 02:37

Re: serialization 1.36.0 extended_type_info exitissue(s)

I'm doubting that its the complexity of the class.

More likely that its the "last" class.

Also it might be relevant that your using a multicore processor.
The library presumes that everything before entering main
and after leavnig main is run on a single thread.  This seems
like a reasonable presumption to me.  You might look into
this.

You should also run the test with break points set on

~singleton(){

m_is_destroyed = true; // <<< break here

}

To verify that this isn't getting called at an unexpected time.

Robert Ramey

Robert Mecklenburg wrote:
> Robert Ramey writes:
>> Its currently in the trunk - head version.  I can't test it and
>> it doesn't fail on any test platforms, so its up to you guys
>> to test it.
>
> I checked out the trunk and tested some of my code.  Of the five
> classes I tested, four unit tests now pass cleanly.  One of them still
(Continue reading)

Ramesh | 1 Oct 03:49
Picon

Question on boost multi-index container erase method

Hello Joaquin,

I am trying to erase a record in the container based on keys - in my
case both the keys are ordered
and unique and I need to have ways to delete records based on either
of the keys.

I tried to erase an element based on key2 & I got the following error:

"error: no matching function for call to 'boost::multi_index
....<Error runs for more than a page>

:erase(boost::multi_index::detail::index_iterator
<boost::multi_index::detail::ordered_index_node<boost::multi_index::detail
::index_node_base<MyMap> > >&)'

The compiler is perhaps complaining that I havent provided a prototype
for erase in the map? In my case I wish to erase the record pointed by
the iterator (In another class I had a single index and I didnt have
the need to provide a prototype, is it because I have two 'unsigned
long' keys that the compiler expects a prototype? )- Kindly help me
fix this error.
My code is posted as below:

Thanks
/R

---

//fwd decl
(Continue reading)

joaquin | 1 Oct 07:56
Picon
Gravatar

Re: Question on boost multi-index container erase method

Ramesh escribió:
> Hello Joaquin,
>
> I am trying to erase a record in the container based on keys - in my
> case both the keys are ordered and unique and I need to have ways to
> delete records based on either of the keys.
>
> I tried to erase an element based on key2 & I got the following error:
>
> "error: no matching function for call to 'boost::multi_index
> ....<Error runs for more than a page>
>
> :erase(boost::multi_index::detail::index_iterator
> <boost::multi_index::detail::ordered_index_node<boost::multi_index::detail
> ::index_node_base<MyMap> > >&)'
>
> [...]
>         tMapDef::index_iterator<key2>::type it =
>                                 key2_index.find(param_key2);
> [...]
>         tMapDef::size_type status = MyContainer.erase(it);
>   

You're retrieving a key2-index iterator and trying to use it on 
key1-index. Replace your
last line with

        tMapDef::size_type status = key2_index.erase(it);

OK now?
(Continue reading)

Andrew Maclean | 1 Oct 08:04
Picon

Re: Simple telnet client demonstration with boost asio asynchronous I/O

It works nicely, this is a good example of using ASIO.

The CMakeLists.txt file could have been made more minimal but I hope
people find the extra bits useful as templates.

Regards
  Andrew

On Tue, Sep 30, 2008 at 7:49 PM, Jeff Gray
<jeffg <at> magellan-technology.com> wrote:
> Andrew Maclean wrote:
>> Here is a CMakeLists.txt file that will let you use CMake
>> (http://www.cmake.org) to create either a visual studio solution or a
>> kdevelop/unix makefile solution. Your code builds with no errors using
>> Visual Studio 2008 and (of course) Linux (Debian), I haven't tried a
>> mac.
>
> Thanks for that Andrew. Nice to see an easy portable build system.
>
> I've worked on Roland Bock's suggestion of timeouts to handle failure to
> connect & attached the working code.
>
> When an error occurs in the class, in my example code, it sets a
> variable which is checked by the main thread. I'm sure there are better
> built in ways of dealing with this for Boost asio or threads.
>
> Presumably, when the socket is closed, this means the io_service.run()
> function returns and the thread is terminated. If anyone has any
> suggestions how to detect any of this from the main thread to determine
> when to exit, I'd like to hear them.
(Continue reading)

Germain BARRET | 1 Oct 09:40
Picon

Re: [program_options] linker error LNK2005 (symbol already defined in object)

BOOST_ALL_DYN_LINK  is for dynamic linking
But what is the macro for All Static linking ?



2008/9/4 Olaf Peter <ope-devel <at> gmx.de>
Thanks to all answers, I'm using really cmake. Obviously I have to go more into the deep since the cmake macro does a bad job here. Define BOOST_ALL_DYN_LINK works for this time since I want static linkage.

<OT>
How can I set the English locale for MSVC compiler cl.exe inside VS IDE? which should be in current locale.
</OT>


Thanks,
Olaf
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Germain BARRET | 1 Oct 09:47
Picon

Re: [program_options] linker error LNK2005 (symbol already defined in object)

I've used BOOST_ALL_STATIC_LINK
I've declared my path to the static libs,
And also, I have the errors :
Error    2    error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??4?$basic_string <at> DU?$char_traits <at> D <at> std <at> <at> V?$allocator <at> D <at> 2 <at> <at> std <at> <at> QAEAAV01 <at> ABV01 <at> <at> Z) already defined in libboost_filesystem-vc80-mt-sgd-1_35.lib(operations.obj)    msvcprtd.lib
[...]

And what's more this error :
Error    26    fatal error LNK1104: cannot open file 'libboost_filesystem-vc80-mt-gd-1_35.lib'    makePatch


Why is it still searching a dynamic lib ???  nevermind dynamic libs !!!

I have only 7 files in my program, it's not complicated to check all.

What is the boost concept of autolink ?

My static libs have been installed by the exe distributed with all libs (static dyn, debug not debg.. and so on)




2008/9/4 Olaf Peter <ope-devel <at> gmx.de>
Thanks to all answers, I'm using really cmake. Obviously I have to go more into the deep since the cmake macro does a bad job here. Define BOOST_ALL_DYN_LINK works for this time since I want static linkage.

<OT>
How can I set the English locale for MSVC compiler cl.exe inside VS IDE? which should be in current locale.
</OT>


Thanks,
Olaf
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hartmut Kaiser | 1 Oct 14:30
Picon
Gravatar

[Phoenix] Review ended September 30th

Hi all,

just a (last) reminder for all of you still wanting to submit a review. The
official review period is over, but since I'm going prepare the review
summary this weekend only anyway - you still have a day or two.

Regards Hartmut
Review Manager
Boris | 1 Oct 14:43
Picon

Boost in the pharmaceutical industry?

Is there anyone who has used Boost C++ libraries in the pharmaceutical  
industry? I especially wonder how Boost C++ libraries and GAMP (see  
http://www.ispe.org/cs/gamp_publications_section/gamp_publications_overview)  
fit together. Anyone with some experience or links to read more about  
Boost and GAMP?

Thanks in advance,
Boris
Peter Barker | 1 Oct 15:29
Picon

type_info wrapper

Hello,

I'm looking for a type_info wrapper similar to the one described in
Alexandrescu's Modern C++ design and wondered if Boost contained one
that wasn't in the implementation detail area of another library?

My Googling shows there's been a demand for this in the past and
wonder if it had been done?

Regards,

Pete
Manuel Jung | 1 Oct 15:54
Picon
Favicon
Gravatar

Re: [MPL][FUSION] generate fusion::map from mpl::vector

Steven Watanabe wrote:
Hey

> #include <boost/fusion/include/mpl.hpp>

This was the only thing missing...
Thank you!
Kind Regards
Manuel Jung

Gmane