« first day (569 days earlier)      last day (4383 days later) » 

1:00 PM
@Xeo A single missing character in a question that's all about returning by value or by reference can make all the difference! :-)
 
is it right to answer our own question like i found on this question
0
A: Gradient background without images

Sri VigneshI found the answer in this post http://www.getdotnetcode.com/nexDotNet/030005H2GradientBg4WinFormVB/H2GradientBg4WinFormVB.htm Thank you.

 
@Mayankswami It is ok
 
Xeo
@Mayankswami It is, it's even encouraged, though a bit more explanation in the answer wouldn't hurt
 
@KerrekSB Reminds me of Minor Differences. :)
 
32
Q: Etiquette for answering your own question

Nick FortescueOften you have a question, you can't find the answer on stack overflow so you google (or think a bit more). Having found the answer you'd like to keep a record so you can find it again later. Before Stack Overflow I would write a blog post so I could google for it later. Jeff and Joel I think sp...

 
1:01 PM
@Mayankswami Answering your own question is fine, but your answer should actually be an answer, not a link!
 
@Mayankswami If it wasn't OK, it wouldn't be possible in the first place.
 
Hey, anyone want to help me figure out why MSVC10 doesn't choke on code that shouldn't compile and (does static type deduction at runtime and infinitely recurses, I think?)?
 
@stdOrgnlDave Probably a moronic language extension. Try compiling with pedantic errors.
 
@classdaknokt it isn't something as trivial as that, it's a more basic failure. GCC and Clang are happy to point out that it's impossible to deduce an argument substitution and instantiate a template, and don't compile. VC10 warns about recursion and recurses indefinitely at runtime.
 
Xeo
@stdOrgnlDave show the code?
 
@classdaknok_t Good stuff!
 
Xeo
Oh, that one
 
LOL const int&
 
I know.
@Xeo this ismodified. I can't figure out VC10's behavior. it doesn't make sense, why does it think it can make an operator< and then why would it recurse???
It makes me worry that there's something I'm fundamentally missing about templates and overriding, that perhaps MS has figured out and GCC and Clang don't.
I know that sounds really weird, but it might be possible in an alternate world for MS to get something right about C++ that GCC and Clang don't...
 
@Mayankswami make that answer more detailed and you'd get an upvote from me. Answers with only a link and not much detail are frowned upon, but self-answering is great.
 
1:21 PM
@Xeo does "oh, that one" mean it's beneath you to figure out what's going on?
 
Xeo
@stdOrgnlDave No, just that we already had that code. Remember when I redirected you to #llvm? :P
 
@Xeo yes, that was a different version
@Xeo and, by the way, clang-bot was very helpful. but this is a modified version that exhibits the aforementioned behavior on VC10. the version you saw caused it to simply choke and die as it did with every other compiler
 
Xeo
Really?
Ah, the operator is flipped
 
old version:
struct A { int a; bool operator<(const int& inty) { return a < inty; } }; template <class A, class B> auto operator<(const A& a, const B& b) -> decltype(a<b) { return a < b; } int main(void) { A a; a.a = 1; int b = 2; if (a < b) std::cout << "hi"; return 0; }
new version:
struct A { int a; bool operator>(const int& inty) { return a > inty; } }; template <class A, class B> auto operator<(const A& a, const B& b) -> decltype(a>b) { return a < b; } int main(void) { A a; a.a = 1; int b = 2; if (a < b) std::cout << "hi"; return 0; }
as you can see there's no way the make an operator< even when you can deduce the return type
but VC10 decides to anyway, warns about infinite recursion at runtime, and then proceeds to do so
 
Xeo
I think runtime recursion would actually be correct
 
1:24 PM
how so?
 
Xeo
@stdOrgnlDave You can, you just need another operator< that is a better match than the templated one
But that would be selected anyways, unless you explicitly call the templated one.. hm...
 
@Xeo I know how to make it work right, I'm wondering why it works how it does
 
oh man, I regret reading that reddit thread
some fucked up shit
 
Xeo
@stdOrgnlDave The templated operator< is in scope inside of itself
Otherwise, no recursion would ever work
 
@Xeo but there is no "<" operator for struct A, how can it generate code that uses a non-existent operator?
 
Xeo
1:26 PM
@stdOrgnlDave It does not. It uses the same templated operator, it recurses
It's really the same as int foo(int x){ return foo(x); }, only with templates and an operator instead of a normal function
 
no, it's more like int foo(int x) { return foo(bob.x)); } when there is no bob.x
...or something
 
Xeo
Throw the decltype out, throw the templates out, and replace operator< with less
Tada, there is what the whole template eventually ends up as, after deduction
Overload resolution simply resolves to the same function / operator
 
"less"?
 
Xeo
just to make it a function
You can also call it is_less
bool operator<(A const& a, int const& b){ return operator<(a, b); } <- this is what deduction and overload resolution eventually turn the template into
 
@Xeo so you think this would be equivalent:
 
Xeo
1:32 PM
What? no
You never call a member function in the original code
 
please show me how you think it instantiates the template then
 
Xeo
Overload resolution always resolves to the free operator<, since there is nothing else
3 mins ago, by Xeo
bool operator<(A const& a, int const& b){ return operator<(a, b); } <- this is what deduction and overload resolution eventually turn the template into
 
which then creates a < b, for which there is no operator
 
Xeo
matter of fact, after removing the late return type that seems to make GCC 4.5.1 choke, it recurses infinitely
@stdOrgnlDave Are you serious? What kind of operator do you think you called in the first place?
 
operator<
there is only an operator> defined in class
 
Xeo
1:35 PM
I think we're having some serious communication trouble
> template <class A, class B> bool **operator<**(const A& a, const B& b)
 
Xeo
a < b is not obligated to call a.operator<(b) if overload resolution doesn't say so
 
bing
I think I got it
so GCC & Clang erroring on the original code, while helpful, are incorrect.
@Xeo that means we're in the alternate universe where Microsoft got some C++ right that GCC and Clang got wrong :-\
 
Xeo
@stdOrgnlDave With "original code" you mean where you had operator< inside the class, right?
 
no the modified one
 
1:40 PM
@stdOrgnlDave: Why are you implying that Microsoft is always worse ? Not that I prefer them over free alternatives, but I admit they have done some serious work lately.
 
Xeo
@stdOrgnlDave What exactly was the error message from Clang for the code that VC compiled?
 
error: invalid operands to binary expression ('A' and 'int')
 
Xeo
That sounds more like a GCC error
 
GCC: error: no match for 'operator<' in 'a < b'
 
Xeo
Okay, one sec
I got a theory why VS might compile and GCC/Clang don't
 
1:41 PM
yeah?
 
Xeo
No, that would be silly
 
@ereOn I have just had lots of bad experience with Microsoft's C++ compliance. they are doing great with C++11 compared to some others (looking at you, GCC), but still
 
Xeo
I thought that maybe it has to do with VC's broken two-phase lookup
But inside a function, the function itself is already in scope
 
yeah, as you noted earlier
I tested against lates clang but only GCC4.5, don't have 4.7 handy
 
Xeo
And what happens if you remove the late return type?
 
1:44 PM
you mean the deduced return type?
it works
but the deduction returns bool, that's plain as day
(works in GCC< about to test clang)
 
Xeo
Mind posting the code that clang chokes on as a full code block?
 
<clang-bot> Undefined behavior detected.
heh, probably infinite recursion
 
Xeo
That wouldn't be undefined behaviour, I think
 
segfault = "undefined behavior" for geordi bots
so is stack overflow
 
Xeo
Oh, ok
So we got that
 
1:46 PM
anyhow, do you want the original code that crashes all compilers, or the original modified version that VS works correctly on but the others don't
 
Xeo
the latter
with the deduced return type
(though it's really called "trailing return type" or "late-specified return type")
 
39 mins ago, by std''OrgnlDave
http://ideone.com/Pihc4
 
Xeo
And with that, you get the "invalid operands" errors?
 
Xeo
Sounds like a bug to me
 
1:48 PM
clang-bot is latest build, I'm pretty sure. do you have GCC 4.7 handy?
 
Xeo
nope
 
Clang 3.2 ((156222)) <--- a few days behind latest build
 
Xeo
My local clang build is a few thousand revisions behind, but atleast it spits out the complete error message:
t.cpp:12:15: error: invalid operands to binary expression ('A' and 'int')
        if (a < b)
            ~ ^ ~
t.cpp:6:34: note: candidate template ignored: substitution failure
      [with A = A, B = int]
template <class A, class B> auto operator<(const A& a, const B& b) -> ...
                                 ^
1 error generated.
it's really the trailing return type that makes Clang choke
 
same for GCC
do you agree that it is plain as day bool, though?
 
Xeo
And I can't think of any reason why that might be
Yes
 
1:51 PM
or do I completely misunderstand trailing return types
 
Xeo
OH
DAMN!
there we go
 
Xeo
Spot the difference
 
not seeing it without side-by-side compare
 
Xeo
I made the operator> member const
 
1:54 PM
what difference should that make
 
Xeo
Since a in operator< is const, it can't call a non-const one, with leads to the substitution failure
It's SFINAE
There was no operator> that accepted a const A& parameter
 
oh
wait, though
 
Xeo
And now I'm wondering why VC compiles
 
...you can see why I am confused :-(
although you helped me along a lot
 
@classdaknok_t some people get cold nose when they lie
 
1:57 PM
so, the template is looking for a const version which doesn't exist, so VC10 uses the non-const version
 
Xeo
struct A {
        int a;
};

bool operator>(A& a, const int& inty){ return a.a > inty; }

template <class A, class B> auto operator<(const A& a, const B& b) -> decltype(a>b)
{ return a < b; }

int main(void) {
        A a; a.a = 1;
        int b = 2;
        if (a < b)
                return 4;
        return 0;
}
VC even compiles this
 
and GCC and Clang complain (indirectly) that it doesn't exist
maybe it's a bug with VC being lax about const correctness?
could it be the broken 2-step lookup you mentioned earlier?
(not familiar with it)
 
Xeo
I think it's their "temporaries can bind to non-const references feature"
int& i = 5; compiles in VC
 
Xeo
and is the same as int&& i = 5;
 
1:58 PM
that's pretty odd
 
Xeo
I think VC might actually make a copy of the const a and bind that temporary to the non-const ref
 
2 days ago, by std''OrgnlDave
wait, there's a clang bot on #llvm? like geordi?
^ nice. will have to find out about IRC again
 
@sehe yes he's very helpful
 
Xeo
Hm, okay, VC does not make a copy
atleast the copy ctor isn't invoked. I made it private, no error
 
where's the geordi bot at, usually?
 
2:01 PM
OFTC #llvm
testing channel #geordi
 
Xeo
@sehe He's called clang-bot :)
 
##iso-c++, ##c++, or #geordi.
 
@stdOrgnlDave Use > or 4-space indent
 
how do you block quote in chat
@sehe he was adapted to clang
 
Xeo
fixed font button, right next to the edit box
 
2:02 PM
@Xeo Sooo... I meant a gcc geordi - still alive somewhere?
 
Xeo
I think so
 
yep, on freenet
 
Xeo
Somewhere
 
#c++
or should I say, ##c++
 
Xeo
What's with the double # ?
 
2:03 PM
I have no idea, I think it's a joke
 
@stdOrgnlDave Depending on what you're quoting. Single line, text, use >, multiline code use 'Fixed Width Font' (or manually indent 4 spaces)
 
Xeo
VC is driving me crazy with the behaviour right now
int main(void) {
  int const& icr = 5;
  int& ir = icr;
}
does not compile, but that's basically what happens in the trailing return type
 
@Xeo Channels with double-# are recognized as the official channels on a given subject.
 
@Xeo now you know how I feel! I think the question is, which lookup behavior is the ISO way to do it? is it OK for it to look up the non-const version for trailing return type deduction?
 
Xeo
No
Overload resolution applies as normal
 
2:05 PM
@sbi language lawyer needed
by the way @Potatoswatter I don't get the 'peas' quote
 
@stdOrgnlDave piece? peace? Homer in the Navy
 
@stdOrgnlDave watch the simpsons clip i posted
lol i don't want to program java so i'm learning about lithium batteries for a possible future hardware component of the project
kill me
 
Xeo
man...
 
> did you film this with a camera?
> nah, nah, probable not.
 
Xeo
2:08 PM
bool f(int& ir){ return true; }

template<class T>
auto g(T const& v) -> decltype(f(v)){ return true; }

int main(void) {
  g(5);
}
This does fail
Though it seems to be the exact same as the operator< thingy
 
Yeah, I had to look around, YouTube is clamping down on everyone who isn't a whiny 6-year-old with a pocket camera
 
@Potatoswatter haha, thank you
hmmm, operator takes a const
that would be
bool f(const int& ir) { return true; }
making the argument const or not determines if it works or not
so is VC saying "a function that takes only const arguments has an equivalent const return type version" or something?
 
Xeo
No, it's something different and definitly a bug
 
so the question hangs in the air: does VC11 exhibit this behavior?
 
Xeo
It only works for operators
 
2:15 PM
what makes you say that's a bug?
 
Xeo
I'm testing with VC11 beta
 
your sample code looks perfectly ill-formed to me
 
Xeo
@DeadMG Scroll up a few more messages
 
@DeadMG that's the point
@DeadMG read the convo
 
that's way too much effort
 
Xeo
2:16 PM
struct X{};

bool operator>(X& a, int const& b){ return true; }

template<class T, class U>
auto g(T const& v, U const& u) -> decltype(v > u){ return g(v, u); }

int main(void) {
  X x;
  g(x, 6);
}
this compiles, but shouldn't
 
so as long as just ONE argument is const?
 
Xeo
struct X{};

bool f(X& a, int const& b){ return true; }

template<class T, class U>
auto g(T const& v, U const& u) -> decltype(f(v,u)){ return g(v, u); }

int main(void) {
  X x;
  g(x, 6);
}
 
man i hate c++
 
Xeo
This does not compile, which is correct
 
@DeadMG lawl
 
2:17 PM
@dave WHAT?!
 
Xeo
@stdOrgnlDave It's something weird with VC's overload resolution for operators
 
@Xeo I suppose we're left with an interesting question. can a bool return-type be non-const?
for an operator?
if (a < b = c)...
 
Xeo
It's not about the return type
 
no, I'm saying that I think MSVC may be making the operator const
by default
 
Xeo
2:19 PM
Nope
 
like, there's no non-const version
 
Xeo
struct X{};

bool f(X& a, int const& b){ return true; }

template<class T, class U>
auto g(T const& v, U const& u) -> decltype(v > u){ return v > u; }

int main(void) {
  X x;
  g(x, 6);
}
If you actually try to call the operator, it fails (aka the above fails)
It's only inside the trailing return type
 
well, I'm leaning toward MSVC bug now, but I'd still like to hear from a language lawyer
or "MSVC feature"
whichever way you want to slant it
 
Xeo
struct X{};

bool f(X& a, int const& b){ return true; }

int main(void) {
  X x; int i = 3;
  decltype(x > i);
}
Fails too
So it's really the trailing return type
Woops
forget the last messages
I forgot to edit f :s
 
Xeo
2:21 PM
Well, still what I said applies, after replacing f with operator> the compilation fails
So it's a bug with the trailing return type
@stdOrgnlDave Excuse me, but I consider myself a language lawyer :P
 
oh :-P
 
man, I woke up way too early today
feel like a zombie
stupid fuckin stomach kept me up again
 
so you can cite where standard says trailing return type can't look at close (but not exact) match?
is this with bools only, or does it work with ints too? like operator+? hmm.
 
Oh my. would you guess that these pics are of the same gal?
I think, the one at the right looks human
 
being a part-time pro photographer, yes.
 
Xeo
2:26 PM
1
Q: Metafunction for type conversion

nijansenI am learning template programming by the book "C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond" and somehow I got myself stuck at the very first exercise. The task is to write an unary metafunction add_const_ref<T> that returns T if it is a reference ty...

close votes please
@stdOrgnlDave It's simply overload resolution that says no
 
@CheersandhthAlf this is not an extreme example, but a pretty one: lipillai.com/example
 
@stdOrgnlDave ouch, i don't like armpits
:)
 
@Xeo what do you mean?
 
Xeo
@stdOrgnlDave Overload resolution dictates how functions are looked up and found.
 
indeed it is.
 
@CheersandhthAlf they sort of come with the package
 
Xeo
And it says that a const argument to a reference-to-non-const parameter is a mismatch and the overload gets thrown out of the overload set
 
girls don't fart
 
in other words, I'm too lazy to do my website ATM, but I have pieces of it for when people need it
god she was a beautiful girl, wanted to be a J. Crew model (thus the black&white, hairstyle, etc.)
 
2:36 PM
Makefiles are so complicated, they make me puke
0
Q: Complex pattern substitution in Makefile prerequisites

Konrad RudolphI’ve got the following directory structure: ./ |- obj/ |--- debug/ |--- release/ |- bin/ |--- debug/ |--- release/ |- src/ |--- main.c |--- libb/ |----- foo.c |- include/ |--- libb/ |----- foo.h Furthermore, I manually specify dependencies of individual objects in my Makefile in t...

 
or, let me amend that: in the daytime
 
@Xeo so any final thoughts?
@KonradRudolph Iagree, but that directory structure is also rubbish
 
Does anyone know, mathematically speaking, is there a name for a the relationship between two binary functions who's arguments are reversed? e.g. f(x,y) = x - y and g(x,y) = y - x, what's the name for the relationship between f and g?
 
you know hteres a math.stackexchange.com right?
not that that is a really hard question
 
@stdOrgnlDave I’m open to suggestions for a better one … I’m not really satisfied with the handling of libraries / TUs either
the only thing I really want is the distinction obj/bin, release/debug as well as having an include and src directory
 
2:42 PM
@stdOrgnlDave If the answer is so easy, couldn't you just answer it?
 
posted on May 07, 2012 by Herb Sutter

Want to know how to write cool tablet apps using Visual C++? On May 18, Microsoft is hosting a one-day free technical event for developers who want to write Metro apps for Windows 8 using Visual C++. I’m giving the opening talk, and the rest of the day is full of useful technical information on [...]

 
OK how to block quote agian?
I made up a partial outline of cross-platform project modeled on Boost's structure
./kc
|-(support: boost, git)
|-bin
|-kitchen (project name, all includes go here)
|-local (stuff to keep out of git)
|-src
|---kc-logger-daemon (source files)
|---libkc (source files)
|---libkc-unit_test (source files)
|---msvc (MSVC project files)
|-----kc-logger-daemon
|-----libkc
|-----libkc-unit_test
|-stage
|---lib
 
you did it
 
YAY
anyway, that keeps it nice and fairly clean IMO considering cross-platform/IDE projects/etc., plus you get the added benefit of just doing "#include <kitchen/threads.h>" in source
 
@stdOrgnlDave That seems way more complex than my structure, and it elides the distinction between different configurations (debug/release)
and there’s no include directory …
 
2:51 PM
@KonradRudolph not really. libkc32_d.lib, libkc32.lib, libkc64_d.lib, etc...seem pretty simple to me
 
> plus you get the added benefit of just doing "#include <kitchen/threads.h>" in source
 
@KonradRudolph I used to have something like that going on, indeed perusing the gcc -M trick (well, in fact the xlC++ variant of that) and a little sed wizardry. I you want I can post that. Late tonight. I'm at work and will be rehearsing all night
 
=> I get the same benefit …
@stdOrgnlDave I don’t understand that …
 
@KonradRudolph you don't have to #include <(project name)/includes/whatever.h>?
 
@sehe Hmm, the gcc -M is really just a sidenote on my question …
@stdOrgnlDave Of ourse not, why would I?
 
2:53 PM
@KonradRudolph nothing, just must be nice only supporting one compiler...
 
@stdOrgnlDave Huh?
 
anyway, libkc32 is 32-bit version of lib kc
libkc32_d is 32-bit debug version of lib kc...
is this not a standard naming convention?
 
ah
no, it’s not
under Linux/Unix you’d usually use separate folders for this, and MSVC also uses the same folder structure I posted
 
@KonradRudolph But makes it a hundred times less complicated, because you can use a sed at the end to duplicate dependencies for different build configs. That way, you can do without .SECONDEXPANSION, and the target-specific extra variable assignments with the fugly $(patsubst ...) hell
 
Boost may be doing something different, dunno
@sehe Then we’re talking about different things
gcc -M gives you header dependencies, not module dependencies
 
2:55 PM
@Xeo I'm out for now, ping me with any more thoughts please
@KonradRudolph not sure how yoy manage to "#include library/whatever.h" without the "includes" in between; this structure serves me to cleanly separate sourcecode for multiple projects centered around a library very cleanly and readably and useably. I like it, at least
modeled it after Boost
c'yall!
 
@stdOrgnlDave Well, look at the Makefile excerpts I posted
@stdOrgnlDave I set the include path …
(CFLAGS+=-I include …)
 
huh
according to MSVC, you can't align function parameters by 16bytes
so how do you pass SSE types as function params on x86?
 
@KonradRudolph ah good point. I usually just code those manually.
 
@sehe As do I!
That’s the whole problem here
Well, that, and the subdirectory structure
 
3:12 PM
@KonradRudolph I've just posted a possible simplification around $(@F) with secondary expansion. It works nicely in my test. Let me know whether it helps?
 
oh great
and now the x86 version crashes
fuck you, Microsoft :(
 
@DeadMG yay Linux !
 
Linux is even worse
 
@sehe It makes it slightly easier, yes … but the duplication is still there, and the problem of not building the dependencies as well
bin/debug/%: obj/debug/%.o $(patsubst %,obj/debug/%.o,$($(@F)_DEPS))
	$(CXX) $(LDFLAGS) $< $(patsubst %,obj/debug/%.o,$($(@F)_DEPS))

bin/release/%: obj/release/%.o $(patsubst %,obj/release/%.o,$($(@F)_DEPS))
	$(CXX) $(LDFLAGS) $< $(patsubst %,obj/release/%.o,$($(@F)_DEPS))
^^ this is what I’ve got now
 
3:32 PM
hurrah, I got an accepted answer!
 
I knew I should not have used that SSE code from the Internets that used dodgy pointer casts
 
heh
 
it worked fine on x64 :(
 
yeah, I have similar probems in my lib
except that's just handling custom types where the alignment is explicitly specified, rather than SSE types
 
but I aligned all the things :(
 
3:45 PM
@DeadMG Not sure why got downvoted. I sure as hell didn't...
 
you thought you did :)
 
@jalf There's only like, three things involved :P
 
@DeadMG well, it smells like a misaligned load. Which means that something is misaligned. Check the addresses in the debugger, or print them out or something :)
or use unaligned loads, to see if that avoids the problem
 
yeah, unaligned load works
must be that __declspec(align(16)) doesn't actually align stuff to 16?
 
oi, allo
 
3:50 PM
maybe I should just copy the source array on to the stack and align it there
 
@DeadMG I hate to suggest a raw pointer (GASP!) but if you allocate some memory you can align it manually pretty easy with one
 
hello guys
Would any one please tell me that in c++ how to load an image and store its data in some array?
 
You open the file, decode it and read the decoded bytes.
Trivial.
(Real answer: use a library that does that for you.)
 
@CatPlusPlus I used to look up to you :-(
 
@CatPlusPlus well i am not c++ developer so it want be that easy as u say
so will u please provide some code
 
3:55 PM
@AshishDonvir what is the framework that you are working with?
 
CImg, or Boost.GIL or whatever.
 
@AshishDonvir it's literally thousands of lines of code
 
@stdOrgnlDave Eh?
 
you want us to write you code?
@AshishDonvir Depending on the project my rate starts at $50/hr. what do you need?
3
 
3:56 PM
@Mooing 4.0
 
time to see if I've just destroyed my performance
 
@AshishDonvir 4.0 what? Win32? .Net? Glut? QT? HTML?
 
.net 4.0
 
@DeadMG load or store? You aren't loading anything from that buffer. But you are loading a whole bunch of things from other places.
 
3:57 PM
If it's .NET, then you are in a wrong room.
We don't do C++/CLI here. Because it sucks.
 
@Mysticial I replaced it by copying the source data on to the stack at 16byte align and then loading from there
 
If you are here, you are in the wrong room.
 
Why was this closed
-1
Q: do we need pointers?

Sourabh Boseis there any case or specific example where we would require pointers for the job? i.e,could something that requires pointers could be done without using them. we could send pointers as a function parameter but that could be done with returned data?we can use pointers to change more than one vari...

 
no more dodgy pointer casts
 
@CatPlusPlus C++/CLI is really good if you want to use C++/CLI
 
3:58 PM
Because it sucks, @Pubby.
 
@classdaknok_t I don't see how. It's a legitimate question, albeit not asked with the best English, but that's not illegal.
 
@stdOrgnlDave I think even MS said it's meant to be a bridge between existing C++ code and .NET, and not a language you write new stuff in.
 
@Pubby either it's a troll, or someone with a profound misunderstanding of how computers work; he needs to read a book in the latter case, or leave SO in the former.
 
@DeadMG That means one of those struct members are not aligned. I see 3 of them. Try printing out all their addresses.
 
@stdOrgnlDave What? How is that a misunderstanding of computers?
 
3:59 PM
@Pubby Off-topic.
 
@CatPlusPlus indeed they did. and it's ugly and sucks. and I don't want to use it. with that said, it is pretty fascinating. I got a 150 bounty digging deep and answering a question about it
 
@mooing i will have a watch at it thanks
 
@DeadMG I wanted to reply before Pubby posted the onebox, but this shitty mobile site lags like IE6.
 

« first day (569 days earlier)      last day (4383 days later) »