Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost-users Digest, Vol 3288, Issue 1
From: Shcherbina Vladimir (Vladimir.Shcherbina_at_[hidden])
Date: 2012-12-05 02:10:56


Hi,

 Could you try it with MS compiler and any release prior to the 1.52.0?

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of boost-users-request_at_[hidden]
Sent: 04 December 2012 17:29
To: boost-users_at_[hidden]
Subject: Boost-users Digest, Vol 3288, Issue 1

Send Boost-users mailing list submissions to
        boost-users_at_[hidden]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.boost.org/mailman/listinfo.cgi/boost-users
or, via email, send a message with subject or body 'help' to
        boost-users-request_at_[hidden]

You can reach the person managing the list at
        boost-users-owner_at_[hidden]

When replying, please edit your Subject line so it is more specific than "Re: Contents of Boost-users digest..."

Today's Topics:

   1. Re: Boost 1.49.0 compilation issue (Marshall Clow)
   2. Re: boost msm - Multiple differed events (Kamel Zaarouri, Mr)
   3. [serialization] versioning for class nested within template
      class (Gabriel Redner)
   4. Re: Asio and software interrupts (Steve Lorimer)
   5. Spirit guidance needed (Arkadiy and Marina Vertleyb)
   6. [boost][polygon]Errors with minkowski sum (renaud lepere)
   7. Re: Spirit guidance needed (Igor R)
   8. Experience with dealing with warnings from the Clang toolset?
      (Paul A. Bristow)

----------------------------------------------------------------------

Message: 1
Date: Mon, 3 Dec 2012 09:29:59 -0800
From: Marshall Clow <mclow.lists_at_[hidden]>
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Boost 1.49.0 compilation issue
Message-ID: <BA420D66-6A77-4CF9-AB4C-E1005A770684_at_[hidden]>
Content-Type: text/plain; charset=us-ascii

On Dec 2, 2012, at 1:47 AM, Shcherbina Vladimir <Vladimir.Shcherbina_at_[hidden]> wrote:

> I tried to compile this boost dependent class with VS2008 and VS2010
> (error lines are in bold)

Another data point:
        I was able to successfully compile your code with clang. and the 1.52.0 release.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

------------------------------

Message: 2
Date: Mon, 3 Dec 2012 21:08:57 +0000
From: "Kamel Zaarouri, Mr" <kamel.zaarouri_at_[hidden]>
To: "boost-users_at_[hidden]" <boost-users_at_[hidden]>
Subject: Re: [Boost-users] boost msm - Multiple differed events
Message-ID:
        <E7E49CA8DA97024ABF8B81BBF85E325412D63A_at_[hidden]>
Content-Type: text/plain; charset="us-ascii"

Hi Guys,

Let's say that we have 2 states, S1 and S2.
with this transition table:

S1 -> S2 on event Es2
S2 -> S1 on event Es1

also let's say that S1 can also accept Ev1 and Ev2 but S2 cannot accept them so it differs them.

Now when let's say that S2 receives 2 events Ev1 and Ev2 and differs them. Now, when S2 goes back to S1 would S1 handle both events in order? or how does it work?

Thanks,

------------------------------

Message: 3
Date: Mon, 3 Dec 2012 17:51:40 -0500
From: Gabriel Redner <gredner_at_[hidden]>
To: boost-users <boost-users_at_[hidden]>
Subject: [Boost-users] [serialization] versioning for class nested
        within template class
Message-ID:
        <CAO0m-H+t-bfAOe7JoV27MEMeHPXs6pVzDV9yqJC1Csp2Av6ESA_at_[hidden]>
Content-Type: text/plain; charset=windows-1252

Hi folks,

I am having trouble incrementing the serialization version of a regular class nested within a template class. I'm not sure if the problem is with boost or with my own understanding of the issue.

My code looks like:
==============================
template <typename A, typename B>
struct Foo
{
  struct Bar
  {
    int data1;
    int data2;

  private:
    friend class boost::serialization::access;
    template<class Archive>
    void serialize(Archive & ar, unsigned int version)
    {
      ar & data1;
      if (version >= 2) {
        ar & data2;
      } else {
        data2 = 0;
      }
    }
  };
};
==============================

My attempt at setting the version looks like:
==============================
namespace boost {
namespace serialization {

template <typename A, typename B>
struct version<typename Foo<A, B>::Bar>
{
  BOOST_STATIC_CONSTANT(unsigned int, value = 2); };

} // namespace serialization
} // namespace boost
==============================

However, g++ gives an error:
==============================
main.cpp:31:8: error: template parameters not used in partial specialization:
main.cpp:31:8: error: ?A?
main.cpp:31:8: error: ?B?
==============================

Strangely, clang 3.0 compiles the code but issues some warnings:
==============================
main.cpp:31:8: warning: class template partial specialization contains template parameters that can not be deduced;
      this partial specialization will never be used struct version<typename Foo<A, B>::Bar>
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:30:20: note: non-deducible template parameter 'A'
template <typename A, typename B>
                   ^
main.cpp:30:32: note: non-deducible template parameter 'B'
template <typename A, typename B>
                               ^
1 warning generated.
==============================

I'd appreciate any pointers!

Thanks,
-Gabe

------------------------------

Message: 4
Date: Tue, 4 Dec 2012 10:17:33 +1100
From: Steve Lorimer <steve.lorimer_at_[hidden]>
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Asio and software interrupts
Message-ID:
        <CAE-NPOiR0Z3rGhmfBftGxpRLrJHTBW=6eMjGac27SaW+OvgJVw_at_[hidden]>
Content-Type: text/plain; charset="iso-8859-1"

On 4 December 2012 01:51, Joseph Sulewski <joemacher_at_[hidden]> wrote:

> *When I call socket->bind I provide it with an endpoint. When I
> create the endpoint I'm currently using the multicast address, what
> should I use for the address? *
>
If you bind to INADDR_ANY then the OS will use its ip routing tables to work out which the best local nic to use is. You can force it to use a specific local nic by providing its address. Most applications will use INADDR_ANY

*If I'm binding to multiple multicast addresses it doesn't make sense to
> bind to one of them.*
>
Because UDP is connectionless there is no way for the kernel / network stack to know which pid to deliver datagrams to for a particular port unless you bind your socket's file descriptor to that port.
(note, if you want to allow other file descriptors to be able to bind to that port you need to set SO_REUSEADDR to 1)

> *Finally, it appears I can join multiple multicast groups but they
> need to be the same port. Is this correct?*
>
The reason for this is as my previous point above. What you would do is create as many sockets as there are different ports, and have each socket join the multicast addresses which are on that port

>
>
-------------- next part --------------
HTML attachment scrubbed and removed

------------------------------

Message: 5
Date: Tue, 4 Dec 2012 09:09:29 -0500
From: Arkadiy and Marina Vertleyb <vertleyb_at_[hidden]>
To: boost users mailing list <boost-users_at_[hidden]>
Subject: [Boost-users] Spirit guidance needed
Message-ID: <BAY002-W145B1AD9858C2877471CB68C8470_at_phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,
 
Can somebody direct me to a part/facility inside the Spirit library to do the following:
 
I need to pre-parce a boolean expression (once) and save it somewhere. Then I need to evaluate this expression (many times, performance important) based on different values of tokens.
 
Will Spirit.Classic do? Or do I need to use any of the newer libraries inside Spirit?
 
Thanks for any help.
 
Arkadiy
-------------- next part --------------
HTML attachment scrubbed and removed

------------------------------

Message: 6
Date: Tue, 4 Dec 2012 10:53:04 +0000 (UTC)
From: renaud lepere <renaud.lepere_at_[hidden]>
To: boost-users_at_[hidden]
Subject: [Boost-users] [boost][polygon]Errors with minkowski sum
Message-ID: <loom.20121204T114200-856_at_[hidden]>
Content-Type: text/plain; charset=us-ascii

 I need to implement robust minkowski sum operations on polygons. I have seen that this could be implemented easily using boost::polygon, the tutorial is here

http://www.boost.org/doc/libs/1_52_0/libs/polygon/doc/gtl_minkowski_tutorial.htm

The example works fine, however i need more precision than "int" (32 bits on my plateform win32-msvc10-32bits). I tried to replace to replace int -> double

typedef boost::polygon::point_data< int > point; with typedef boost::polygon::point_data< double > point;

But this leads to strange errors deep into the code (operator< is "bad")
        if (!_Pred(_Left, _Right))
                return (false);
        else if (_Pred(_Right, _Left))
                _DEBUG_ERROR2("invalid operator<", _File, _Line); called after
        scan_data_.insert(*insert_itr); // line 1197 in scan_arbitrary.hpp

 What can i do to avoid it, if i use "long long" type it works but it sends a lot of warning at compile time. Any idea of what i should do ? Is "double" type supported ?

------------------------------

Message: 7
Date: Tue, 4 Dec 2012 17:04:41 +0200
From: Igor R <boost.lists_at_[hidden]>
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Spirit guidance needed
Message-ID:
        <CAPnv1P+=4MU8cG14So8q_oiG==VjLCRZLOeuTadtdi9GGuvZFg_at_[hidden]>
Content-Type: text/plain; charset=UTF-8

> Can somebody direct me to a part/facility inside the Spirit library to
> do the following:
>
> I need to pre-parce a boolean expression (once) and save it somewhere.
> Then I need to evaluate this expression (many times, performance
> important) based on different values of tokens.
>
> Will Spirit.Classic do? Or do I need to use any of the newer
> libraries inside Spirit?

I belive you'll get more responses on Spirit-specific list:
http://www.boost.org/community/groups.html#spirit

------------------------------

Message: 8
Date: Tue, 4 Dec 2012 15:28:41 -0000
From: "Paul A. Bristow" <pbristow_at_[hidden]>
To: <boost-users_at_[hidden]>
Subject: [Boost-users] Experience with dealing with warnings from the
        Clang toolset?
Message-ID: <00d201cdd234$0a4d1a90$1ee74fb0$@hetp.u-net.com>
Content-Type: text/plain; charset="us-ascii"

I have added a little information on dealing with warnings when using the Clang toolset at
 
https://svn.boost.org/trac/boost/wiki/Guidelines/WarningsGuidelines
 
but I am sure there are people using Clang who can provide more detailed information and suggestions from their experiences.
 
Please tell me if you have anything to add.
 
Paul
 

---
Paul A. Bristow,
Prizet Farmhouse, Kendal LA8 8AB  UK
+44 1539 561830  07714330204
pbristow_at_[hidden]
 
-------------- next part --------------
HTML attachment scrubbed and removed
------------------------------
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
End of Boost-users Digest, Vol 3288, Issue 1
********************************************
The information in this e-mail transmission contains proprietary and business 
sensitive information.  Unauthorized interception of this e-mail may constitute 
a violation of law. If you are not the intended recipient, you are hereby 
notified that any review, dissemination, distribution or duplication of this 
communication is strictly prohibited. You are also asked to contact the sender 
by reply email and immediately destroy all copies of the original message.

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