| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> have you searched on google? <1> not necessarily XML, but i need to store hierarchicle data <0> have you looked at the serialize stuff from boost? <2> boost can unserialize xml, but only a certain form of it <1> not really.. I thought you guys could give alink, so i don't have to search that much <2> but it's not C either <1> i need c++ <1> not c <2> then google for xerces <1> yep, found it, thanx <1> hmmm, this is huge... 10MB... isn't there something smaller? <0> exception yes, but if he's writing it, one presumes it can read it <0> what is huge? <1> 10 MegaBytes <0> what is 10megabytes? <1> ohh :))
<3> what exactly is it that takes 10megs? <1> the xerces <0> btw, boost is at www.boost.org <4> well that's really huge though :] <1> xerces is 10 MB <4> MrMuscolo, expat is around 10K, but you probably wouldn't be satisfied with the way it works :] <3> damn i'm looping the same track for the last 24 hours, something in those angry german vocals makes me want to listen more :D <0> it's the subliminal *** that's got you listening <3> maybe <1> melfar: I'm don't need anything complex, I'll take a look, 10x <4> subliminal angry german *** :] <5> Doesn't sound too good <6> http://www.uta.fi/FAST/US8/PC/spade.html <7> it has a perfect operator match <7> but thinks another one is a near-match and so doesnt compile -.- <8> what are the signatures? <1> melfar: hmm... i guess you were right <4> about the self-describing name SAX ? <7> rdragon: the operator is wstring::operator =(const wstring &) and wstring::operator =(charT) <7> and it likes charT better somehow <8> what's charT ? <7> wchar_t <9> What do you p***? <7> which is int/32 bits on this system <8> what did you p***? <9> wchar_t should not be int. <7> its an object with an operator int () and an operator wstring &() -.- <9> If it is then your system is seriously broken. <7> its gcc-3.4.4 -.- <8> meh <8> what is that object? <7> it doesnt discriminate between wchar_t and int <9> I bet operator() is const while operator wstring&() is non-const. <9> Tamama: In C++ wchar_t is very != int. <7> _m_ i know, please let the compiler know too <9> On which OS is that? <7> it compiles fine under vc7 <8> Tamama maybe you should ditch the operator wstring and just provide an operator<< to a wostream ? <7> but now i want to compile the thing on freebsd :) <7> rdragon: and then that wostream has to be a string again? <9> hmm, iirc, freebsd still has some wchar_t insanity. <10> can you post code? <8> well i'm really not sure how you're using it <8> what IS the object? <8> and why is a conversion to both an int or a string acceptable <7> some_wstring=multi_operator_object <8> what IS the object? <7> some multi-type thing <7> ***ign it an int, it becomes an int <8> what *IS* it?? what does it represent?? <7> just a univar object.. that is all it represents <8> like boost::any ? <9> Tamama: people on efnet/#c++ told me that wchar_t is not a typedef on your system. <7> dunno, could be <7> _m_ well buggers! <8> did you write it? <9> So it (correctly) is a type of its own. <7> rdragon: sure, and i can get past this as well.. just prefer not to <7> _m_ double buggers <9> tell me is operator int() const?
<7> i can make it <9> That's not my question. <7> not currently <7> the thing is <7> i removed the entire operator int() for test.. and it still complains <7> albeit now it only sees 2 matches instead of 3 -.- <8> maybe you should ditch your cl*** and use boost::any <8> that is, if you really have a valid reason for using something like that <8> oh, did we ever see the error message? <9> this code works for me: #include <iostream> #include <string> struct foo { operator int() { return 1; } operator std::wstring &() { return s; } std::wstring s; }; int main() { foo f; std::wcout << f; } <9> (using several compilers) <8> yeah, lets see the errors then <7> http://pastebin.com/578831 <9> Ah that code fails. <9> /usr/local/gcc-3.4.4/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../include/c++/3.4.4/bits/basic_string.h:426: note: candidates are: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits,#include <iostream> #include <string> struct foo { operator int() { return 1; } operator std::wstring &() { return s; } std::wstring s; }; int main() { foo f; std::wstring s; s = f; } <7> right <9> huh? <7> i just copy/pasted yours and added an ***ignment.. fail <9> somehow, the error message was pasted, too. WTF? <9> como doesn't like it, either. <7> the = operator is just so much more clean in this instance than << <7> since it is an ***ignment <7> std::wstring t(f) works though <8> well <8> it might be a nonstandard constructor that takes the wchar_t <8> er, sorry, you're looking at ***ignment <8> ah <8> try .***ign() <8> according to josuttis, .***ign() doesn't accept a single character <8> but = does <11> hey, I'm learning C++ and am having a problem trying to compile a small program. Can you take a look at the code and see what you think? <7> sure <11> thanks friend.... <11> http://www.noidea128.org/sourcefiles/15970.html <8> Tamama probably because it understood the difference between wchar_t and int, or whatever <7> yeah wchar_t is a short int there <11> oops sorry, think I interupted you guys there! <7> budest: its fine :) <7> budest: what is the problem? <11> ;) <11> getting a compile error with the above code <7> where <11> 14 C:\Dev-Cpp\My Projects\globalvariable.cpp `count' undeclared (first use this function) <11> here is the compile log.... <11> http://www.noidea128.org/sourcefiles/15974.html <3> budest, first you initialize a global count, then initialize a local integer with the same name, i dont know but it might be the problem (i'm only learning, i might be completely wrong) <7> i tested it here.. bad compile as well <7> the local/global thing shouldnt matter <11> it seems to be a problem with the global variable count <7> it doesnt see it at all <7> isnt count a predefined name somewhere? <9> it is. <9> Don't use "using namespace std". <3> cpp rewards originality :D <7> i renamed count to count1 everwhere.. works fine <3> or name your count nCount <3> yeah <5> Here's why. <9> No, just don't use "using namespace std". <5> /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/stl_algo.h:412: error: also declared as 'typename std::iterator_traits<_Iterator>::difference_type std::count(_InputIterator, _InputIterator, const _Tp&)' here <7> well there you have it <11> So what's the problem then? <7> rename count to something else <7> heh <7> in short <9> No, just don't use "using namespace std". <7> or that <11> _m_: tried that and still compile error <9> You will have to fix the identifiers that belong to std, of course. <9> (i.e. use std::cout, not just cout) <7> http://www.noidea128.org/sourcefiles/15975 <11> So what is the problem with the code that it doesn't like the global variable count? <11> just so I know
Return to
#c++ or Go to some related
logs:
#MissKitten #AllNiteCafe undernet skype key
undernet tweetyf
#php 180db alarm -keyring -keyfob -key fob #chatzone #linuxhelp #MissKitten jezabel dalnet -singapore -galaxynet
|
|