[xsd-users] xsd::cxx::tree::list::init() in 2.3.1 can't handle empty strings

Ray Lischner rlischner at proteus-technologies.com
Mon Jun 25 10:05:45 EDT 2007


Thank you, but the patch has a problem. The compiler complains that sequence has no member named ptr. I agree with the compiler. I don't understand the line
 
typedef typename sequence<X>::ptr ptr;
 
It seems that ptr is a struct, defined earlier in the file, and this line simply shouldn't be there.
 
--
Ray Lischner, Proteus Technologies

________________________________

From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Sat 6/23/2007 1:03 PM
To: Ray Lischner
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] xsd::cxx::tree::list::init() in 2.3.1 can't handle empty strings



Hi Ray,

Ray Lischner <rlischner at proteus-technologies.com> writes:

> There is a bug in the library of release 2.3.1. An empty <list> causes
> list::init to take the empty string and try to initialize one element
> of the list with that empty string. I was going to supply a patch, but
> then I realized that I'm not entirely sure what is correct. An empty
> string is easy. What if the string contains a single space?

The spaces are collapsed which means a string with a single space
results in an empty list. I have made a patch for 2.3.1 that should
fix this bug:

http://www.codesynthesis.com/~boris/tmp/xsd-2.3.1-list-init.patch

Thanks for reporting this!


-boris





More information about the xsd-users mailing list