<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.parsers.spirit.general">
    <title>gmane.comp.parsers.spirit.general</title>
    <link>http://blog.gmane.org/gmane.comp.parsers.spirit.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13820"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13819"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13818"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13817"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13816"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13815"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13814"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13813"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13812"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13811"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13810"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13809"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13808"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13807"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13806"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13805"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13804"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13803"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13802"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13801"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13820">
    <title>Re: problem with simple grammar action.</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13820</link>
    <description>

No. They get dropped.


There is no _3 there. Only _1 and _2 (assuming there's
a &gt;&gt; after '+').


There's no plan to eliminate this behavior.


I think I'm lost. I need more explanation. Could you please
clarify? Simple examples would help.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-01T23:27:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13819">
    <title>Re: multi_pass and operator--</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13819</link>
    <description>
On Dec 1, 2008, at 3:43 PM, Jeff Flinn wrote:

   if you are going to convert (begin,end ) to an std::string its  
easier to do this

   std::string result(++begin.end);
   result.erase(result.length()-1);   // erase final '"'

   done!!!


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Carl Barron</dc:creator>
    <dc:date>2008-12-01T20:50:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13818">
    <title>Re: multi_pass and operator--</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13818</link>
    <description>
Yes, your getting an input_iterator from the istream, which doesn't 
support those operators.

You might be able to replace:

    assert( end - str &gt;= 2 );

with:

    assert( std::distance(str, end) &gt;= 2 );

You'd have to forego the decrement of the end iterator, and return a 
substring excluding the final quote.

Based on your use of 1.34.1, I assume you're using classic spirit. And 
based on your choice of var names that you are extracting a quoted 
string w/out the qoutes, if so you this is what I do:

struct QS
{
    typedef std::string result_t;

    template&lt; typename ScannerT &gt; int
operator()
( ScannerT const&amp; scan, result_t&amp; result )const
    {
       match&lt;&gt; m = ( lexeme_d[( '"'
                     &gt;&gt; !( (*(c_escape_ch_p-'"'))[assign(result)] )
                     &gt;&gt; '"' )] ).parse( scan );

       return m? m.length() : -1;
    }
};

const functor_parser&lt;QS&gt; QS_p;

Then use it with a semantic action like so, with the assign actor:

    some_rule = ... &gt;&gt; QS_p[assign(some_string)] &gt;&gt; ...

Jeff


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Jeff Flinn</dc:creator>
    <dc:date>2008-12-01T20:43:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13817">
    <title>multi_pass and operator--</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13817</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Spirit-general mailing list
Spirit-general&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spirit-general
</description>
    <dc:creator>John Wilkinson</dc:creator>
    <dc:date>2008-12-01T20:14:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13816">
    <title>Re: rule actions</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13816</link>
    <description>wow! thanks a lot!

I can't believe I missed that --
I had tried assign(x,y) and that wasn't 
working but assign_a(x,y) works perfectly fine.

Thanks again!
Ian

On 14:10 Mon 01 Dec     , Carl Barron wrote:

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>ian eyberg</dc:creator>
    <dc:date>2008-12-01T19:22:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13815">
    <title>Re: problem with simple grammar action.</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13815</link>
    <description>
On Nov 30, 2008, at 7:01 AM, Joel de Guzman wrote:

Do you count the unused_types in determinining the position k  for _k ?

that is   to get  stynthesised(c) = stnthesised(b)  where
c =  (a &gt;&gt; '+' b) [_val =  _3  /* _val = _2 */]

if you eliminate this behavior you lose the abiliity to get partial  
results without local varaibles,
but if ig you keep this and add _syn so that it is the synthetic  
return value regardles if it is a sequence,
or not then  the user most often just needs _stn but if h4 wishes the  
current behavior he uses _0, etc.
Seems like the best of both worlds then  _1 does not have two meanings  
anymore and the confusion
can be eliminated.  [I assume _syn is not in namespace bosst::spirit  
somewhere else]


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Carl Barron</dc:creator>
    <dc:date>2008-12-01T19:15:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13814">
    <title>Re: parser compiled with msvc9 is four to fivetimes slower relative to msvc8</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13814</link>
    <description>
It turns out that _SECURE_SCL was indeed the main culprit, as you
suggested. Apparently the _SECURE_SCL implementation in VS2008
prevents container constructors from being inlined, leading to the
performance decrease.

The remainder of my performance  degradation was due to a VS2008
project file conversion bug. When it converts a VS2005 project to
2008, it drops your optimization option
(http://support.microsoft.com/kb/958148). Once you enable optimization
again and force _SECURE_SCL=0, then you get back to VS2005
performance.

Of course, as you point out, there is the nasty ABI impact to deal
with when setting _SECURE_SCL=0.

thx for your help,
Michael

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Michael Weber</dc:creator>
    <dc:date>2008-12-01T19:12:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13813">
    <title>Re: rule actions</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13813</link>
    <description>
On Dec 1, 2008, at 12:42 PM, ian eyberg wrote:

Assign or assign_a ??   assign_a has two forms  assign_a(x) and  
assign_a(x,y) // last one does x = y.

see the complete list in the docs.   Beware that they are depreciated  
I believe.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Carl Barron</dc:creator>
    <dc:date>2008-12-01T19:10:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13812">
    <title>rule actions</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13812</link>
    <description>Hi,
  I've been going through the documentation on the website on
rule actions, and still am not understanding them fully.

I have an rule that is something like this:

  myrule = str_p("blahtxt")[assign(self.action.name)];

this correctly throws 'blahtxt' into my action.name variable
I'm looking to do something like this:

  myrule = str_p("blahtxt")[self.action.name = "myblah"];

where self.action.name would now hold "myblah"
Surely, I'm just overlooking something obvious here.

Thanks,
-ian

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>ian eyberg</dc:creator>
    <dc:date>2008-12-01T17:42:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13811">
    <title>[spirit2] compile time</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13811</link>
    <description>Hi,

I'm sure you all know that I am tweaking spirit2 inside out to
squeeze more compile time performance. Here are some numbers
so far. The most complex example in the spirit2 examples folder
is the mini-C compiler (compiles a very simple C like language
to a virtual machine). It is as close to a real world application
while still maintaining simplicity for the purpose of instruction.

Some numbers:

   spirit2 (in boost trunk):
   2 minutes, 37.9 seconds

   spirit2x (experimental in spirit svn):
   1 minute, 46.2 seconds

What's interesting about the mini-C compiler is that I tried as
much as possible to apply all tricks (***) to make it build faster,
like e.g. composing separate grammars, separating the grammar
definitions (the constructors) in separate cpp files, explicit
instantiation of the templates, etc. So, while the original 2 minutes,
38 seconds is not bad at all to begin with (considering the /relative/
complexity of the grammar(s)), now we have a definite speedup.

I'm quite happy. Let's hope we gain some more.

Hardware Specs:
   Core-2 Duo, 2.4Ghz, 4GB memory

Software Specs:
   MSVC 9.0 on Windows XP

(***) I'll try to document the tricks. Call it "spirit: best practice",
if you will. The Mini_C compiler has 25 rules, complete with semantic
actions. The rules have varying complexity from the simplest one-liner
to a 28 line rule.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-01T15:50:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13810">
    <title>Re: [karma] streaming empty containers</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13810</link>
    <description>
Ohh, that's probably a bug. I'll look into it asap.

Regards Hartmut




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
_______________________________________________
Spirit-general mailing list
Spirit-general&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spirit-general
</description>
    <dc:creator>Hartmut Kaiser</dc:creator>
    <dc:date>2008-12-01T13:34:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13809">
    <title>Re: [karma] streaming empty containers</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13809</link>
    <description>
Yeah, sorry. Was too tired yesterday...

Regards Hartmut



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Hartmut Kaiser</dc:creator>
    <dc:date>2008-12-01T13:31:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13808">
    <title>Re: [karma] streaming empty containers</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13808</link>
    <description>
Yeah, haven't even noticed it. There is one other issue I ran into when
applying the optional operator. Simply prepending the '-' results in the
following compile error:

[...]/boost-1_37/boost/spirit/home/karma/operator/list.hpp:62: error: call of overloaded ‘generate(const boost::spirit::component&lt;boost::spirit::karma::domain, boost::spirit::karma::any_stream&lt;char&gt;, boost::fusion::nil&gt;&amp;, boost::spirit::karma::detail::output_iterator&lt;boost::spirit::karma::detail::ostream_iterator&lt;char, char, std::char_traits&lt;char&gt; &gt;, void&gt;&amp;, const boost::fusion::unused_type&amp;, const boost::fusion::unused_type&amp;, boost::spirit::unused_type)’ is ambiguous

using the following construct:

    std::cout &lt;&lt; boost::spirit::karma::format(
                    '{' &lt;&lt; -(stream % ", ") &lt;&lt; '}',
                    v
                ) &lt;&lt; std::endl;

Any ideas?

   Matthias
</description>
    <dc:creator>Matthias Vallentin</dc:creator>
    <dc:date>2008-12-01T07:12:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13807">
    <title>Re: [karma] streaming empty containers</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13807</link>
    <description>
Just to clarify, I think Hartmut meant:

     -(a % ',')

Cheers!
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-01T06:02:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13806">
    <title>Re: [karma] streaming empty containers</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13806</link>
    <description>
Finally I see the connection to Spirit.Qi. Thanks for these examples.

   Matthias
</description>
    <dc:creator>Matthias Vallentin</dc:creator>
    <dc:date>2008-12-01T05:47:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13805">
    <title>Re: [karma] streaming empty containers</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13805</link>
    <description>
The list generator a &lt;&lt; ',' is equivalent to a &lt;&lt; *(',' &lt;&lt; a), so if you
need support for empty containers just make it optional: -(a &lt;&lt; ',').

The generated output is cut off because the generator failed and it's not
possible to unroll output which already has been generated. But the stream
should have gotten its ios_base::badbit flag set (or for that matter, if you
enable exceptions on the stream, it should have thrown).

Regards Hartmut



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Hartmut Kaiser</dc:creator>
    <dc:date>2008-12-01T04:05:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13804">
    <title>Re: [karma] streaming a std::map</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13804</link>
    <description>
Yeah, works like a charm, thanks! The appropriate header is by the way:

    &lt;boost/fusion/include/std_pair.hpp&gt;

   Matthias
</description>
    <dc:creator>Matthias Vallentin</dc:creator>
    <dc:date>2008-12-01T02:21:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13803">
    <title>[karma] streaming empty containers</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13803</link>
    <description>Hi there,

how do I reliably stream containers regardless of their size? The
following example only works with non-empty containers:

    std::vector&lt;int&gt; v;
    
    std::cout &lt;&lt; boost::spirit::karma::format(
                    '{' &lt;&lt; (stream % ", ") &lt;&lt; '}',
                    v
                ) &lt;&lt; std::endl;

If the container is empty the output is
    
    {%

and does not include a closing bracket. In fact, the entire stream is
cut off at the point of the first '{'. Of course, I could manually check
if the container is empty but it would be sweet if karma can handle
empty containers as well (output: "{}"). Could it be that I am misusing
karma here?

   Matthias
</description>
    <dc:creator>Matthias Vallentin</dc:creator>
    <dc:date>2008-12-01T02:02:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13802">
    <title>Re: Simple suggestion for BOOST_FUSION_ADAPT_STRUCT</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13802</link>
    <description>
Sure. That's planned. I'm thinking of a simpler
name though: BOOST_FUSION_STRUCT. Patches welcome.
This should be easy to do ;-)

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-01T00:33:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13801">
    <title>Simple suggestion for BOOST_FUSION_ADAPT_STRUCT</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13801</link>
    <description>Perhaps for structures whose main purpose is to be used w/ fusion, a 
macro can be used that will both define the structure and adapt it so that:

    struct foo
    {
         int var1;
         int var2;
         std::string name;
         std::string name2;
    };

    BOOST_FUSION_ADAPT_STRUCT(
         foo,
         (int, var1)
         (int, var2)
         (std::string, name)
         (std::string, name2)
    )

Can be shorted to something like:

    BOOST_FUSION_DEFINE_AND_ADAPT_STRUCT(
         foo,
         (int, var1)
         (int, var2)
         (std::string, name)
         (std::string, name2)
    )



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Raindog</dc:creator>
    <dc:date>2008-12-01T00:10:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13800">
    <title>Re: [karma] streaming a std::map</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13800</link>
    <description>
If you want to use the stream primitive you need to provide a operator&lt;&lt;()
for the map's value_type. 

But, since std::pair is a fusion sequence (at least if you include the
proper fusion header for that), you could write for instance:

    out &lt;&lt; karma::format(
                        '{' &lt;&lt; ((int_ &lt;&lt; lit) % ", ") &lt;&lt; '}',
                        container
                        );

if the type of the map is map&lt;int, string&gt;.

HTH
Regards Hartmut



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Hartmut Kaiser</dc:creator>
    <dc:date>2008-11-30T22:10:53</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.parsers.spirit.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.parsers.spirit.general</link>
  </textinput>
</rdf:RDF>
