• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C++, you are really funny sometimes

Barnaby W. Füi

Elite Member
Actually this is fairly normal; the main annoyance is that it doesn't mention any line numbers from *my* code, so I had to hunt down exactly what was causing this. And now I can't seem to figure out wtf the problem is. (something to do with lexeme_d)

Just spreading a little misery around the forum. 🙂

[edit: broke up super long lines]
 
Originally posted by: neilm
Is it just me, or is that code horribly unreadable.

That is why I posted my response. To difficult to read the code to try to figure out what it was attempting to do, let alone debug it.

White space, indentation, namespace folding.

 
Originally posted by: EagleKeeper
Originally posted by: neilm
Is it just me, or is that code horribly unreadable.

That is why I posted my response. To difficult to read the code to try to figure out what it was attempting to do, let alone debug it.

White space, indentation, namespace folding.

That's not the code ... it's just the error message.
C++ error messages get really bad when dealing with templates & STL stuff.

There's a good project for somebody ... write an app to translate C++ error messages to something useful 😛
 
Originally posted by: Armitage
Originally posted by: EagleKeeper
Originally posted by: neilm
Is it just me, or is that code horribly unreadable.

That is why I posted my response. To difficult to read the code to try to figure out what it was attempting to do, let alone debug it.

White space, indentation, namespace folding.

That's not the code ... it's just the error message.
C++ error messages get really bad when dealing with templates & STL stuff.

There's a good project for somebody ... write an app to translate C++ error messages to something useful 😛

Doing that could fry a CPU easily

 
Originally posted by: tinyabs
What compiler are u using?

g++.

Turns out my problem was even a FAQ; my fault for not RTFMing. 😛

Basically it was because I had a rule<MyScannerType> that I was passing to lexeme_d[], and lexeme_d isn't supposed to handle rule<>s with custom scanner types. Or something like that. And no, the error message didn't help me a whole lot. I certainly didn't figure out the problem by reading the error message. 😛 I just started narrowing down the possibilities of what it could be, and finally noticed something in mine that differed from the working example I was looking at. And even though I'm past compile problems, my parser still doesn't work right. 😀
 
Back
Top