Thursday, November 27, 2014

Digest for comp.lang.c++@googlegroups.com - 3 updates in 3 topics

comp.lang.c++@googlegroups.com Google Groups
Unsure why you received this message? You previously subscribed to digests from this group, but we haven't been sending them for a while. We fixed that, but if you don't want to get these messages, send an email to comp.lang.c+++unsubscribe@googlegroups.com.
Ben Bacarisse <ben.usenet@bsb.me.uk>: Nov 27 11:10PM

Chicken Mcnuggets <chicken@mcnuggets.com> writes:
<snip>
 
> unknown location(0): fatal error in "SCGITest": std::out_of_range:
> vector::_M_range_check: __n (which is 49) >= this->size() (which is
> 15)
 
The code increments an iterator in some specific cases. The for loop
then *always* increments it. Are you certain that the condition that
ends the loop (it != raw_scgi_netstring.end()) is going to fire and not
be "skipped"?
 
BTW, the code looks to be making heavy work of parsing out the parts of
string. The std::string class has lots of member function that can help
with this sort of task.
 
<snip>
--
Ben.
Barry Schwarz <schwarzb@dqel.com>: Nov 27 02:55PM -0800

On Thu, 27 Nov 2014 09:38:16 -0800 (PST), elizuniga573@gmail.com
wrote:
 
>Yeah you are right , but the id is not the problem the message is
 
>"instantiated from here" where i declared my priority queue.
 
This is a completely different message than my system generates.
 
>The question is how can a create a priority queue of a class because it seems what i do doesnt work.
 
That is most likely not the question. The more probable question is
how to define the class properly so a priority queue can be
implemented.
 
You need to provide the complete error message and identify the line
of code the compiler is referring to.
 
Go back and look at the hint I gave you in my last message.
 
--
Remove del for email
Nobody <nobody@nowhere.invalid>: Nov 19 09:52AM

On Sun, 16 Nov 2014 14:34:18 -0800, Öö Tiib wrote:
 
 
> You can't. There can be 'istream' whose size is not constant. For example
> it can be some fifo or pipe that other application is writing into from
> other side.
 
It could even be a regular file which some other application is writing
into.
 
In that case, it will have a defined size at any moment in time, but that
doesn't mean that you'll be able to read it all before the size changes.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: