Chtistopher Yeleighton
Check me out on the web at Obszar użytkownika Krzysztof - Windows Live or at my blog.
M.Sc. in mathematics, software developer
| Forum | Thread | Replies | Latest activity |
|---|---|---|---|
| Tech Off | a selector iterator | 1 | Jun 14, 2011 at 2:49 AM |
Day 1 Keynote - Bjarne Stroustrup: C++11 Style
Mar 03, 2012 at 6:37 AMDay 1 Keynote - Bjarne Stroustrup: C++11 Style
Feb 21, 2012 at 5:21 AMSo, why can’t I read an unsigned char from an input stream?
When I try to read from "0", I get 060 and not 0 as expected.
And when I push (unsigned char) 0, I get "\0", not "0" in the output.
Herb Sutter: C++ Questions and Answers
Aug 02, 2011 at 2:23 PM@OS guest:Code and data (like std::cout) in libraries are fully instantiated.
Microsoft's Commitment to C++
Dec 09, 2010 at 1:44 AMThe thing is, Microsoft cannot abandon C++ completely because they need a tool to maintain and compile the operating system. And that rudimentary support seems to be just enough to do that.
Microsoft's Commitment to C++
Dec 07, 2010 at 1:00 AMOK, so when shall we see std::messages implemented?
David Ching: Before you start praising Qt, try examining whether writing to a Qt output stream succeeds
C9 Lectures: Stephan T. Lavavej - Standard Template Library (STL), 4 of n
Oct 01, 2010 at 1:42 AMIf GameEntity‘s copy constructor has trivial path, there is a workaround, although contrived and against the bitzkrieg convention that objects in C++ should not have an error state: push back a temporary constructed to follow that trivial path and do serious things to v.back() afterwards.
C9 Lectures: Stephan T. Lavavej - Standard Template Library (STL), 4 of n
Sep 26, 2010 at 10:20 PMWhy not? It is rectangular and it contains numbers and symbols in the cells.
C9 Lectures: Stephan T. Lavavej - Standard Template Library (STL), 5 of n
Sep 24, 2010 at 12:49 AMAm I correct you are using enumerated types to store values outside the declared range of the type? I admit that C++ already allows this where it allows (Enum()) as a valid expression; however, I would never mix entities like that. I would rather use the underlying type or, if it is needed for resolution, a wrapper class.
BTW, I would really appreciate if enumerated types were true compile-type sets of values in C++, with expressions like (wrapping) increments (++e), (--e), (limits<e>) (this one would require compiler magic because builtin types only have min and max as library definitions) and (e = dynamic_cast <Enum> (07)) throwing bad_cast. Of course, these features can be simulated with TMP, but it takes a lot to write such code (and, even worse, to read it).
C9 Lectures: Stephan T. Lavavej - Standard Template Library (STL), 4 of n
Sep 22, 2010 at 12:35 PMOn the other hand, a Matrix is a fairly general data structure, and if you promoted your implementation to a separate component, you could use it elsewhere. But then my criticism at your implementation choice would be much more valid, so it was actually clever to hide it
C9 Lectures: Stephan T. Lavavej - Standard Template Library (STL), 4 of n
Sep 22, 2010 at 12:26 PMYour correctly observed in Installment 1 how the triple A-I-C saves us from having A*C implementations. However, this only applies to source code, because the object code will contain (up to) A*C implementations (actually A*C*T). Of course, most code sets do not use all pairs; however, depending on the domain, the object size can skyrocket. This is not a big problem for algorithms like find, and any algorithms you would type inline off your head, but complex and long template algorithms do exist, e.g. sort. That was a significant problem for Adobe when they created their image manipulation library.
See more comments…