Opened 18 years ago

Closed 15 years ago

#314 closed Bugs (wontfix)

spirit insert_key_actor.hpp

Reported by: sandford Owned by: Joel de Guzman
Milestone: Component: spirit
Version: None Severity: Problem
Keywords: Cc:

Description

Compile error in: insert_key_actor.hpp with MSVC 7.1

Here's the code change that allows it to compile and 
seems logical. Still testing for full functionality and just 
starting to use boost.
//            key_type key(first_,last_);
//            value_type key_value(key, value_);
//            ref_.insert( key_value );
            ref_.insert( value_ );

Also noticed a flaw in the demo code for inserting into a 
map, as the key data type is defined as const in 
map<,>::value_type and thus can not be assigned to.

Specific errors are c2078, c2440, c2664.

Change History (2)

comment:1 by Daryle Walker, 15 years ago

Component: Nonespirit
Severity: Problem

comment:2 by Joel de Guzman, 15 years ago

Resolution: Nonewontfix
Status: assignedclosed

Not enough info context to fix this. Please post a minimal test code that exhibits this problem to: https://lists.sourceforge.net/lists/listinfo/spirit-general

Note: See TracTickets for help on using tickets.