If you’re trying to do unit testing using async functions in Visual Studio 2012, you may be in for a surprise.
I figured I’d write a short but sweet blog entry that is bound to help someone. In a nutshell, I was using the parallel_for_each function in PPL and Visual Studio 2010 gave me the following error message:
Z-Indexes. They seem simple enough. At least they seem to simple enough that Microsoft could implement them without messing it up. Unfortunately, this is not the case.
The z-index bug in Internet Explorer is troublesome because it affects both IE6 and IE7. Unlike many of the Internet Explorer bugs, this one is likely to stick around for a while.
So how did Microsoft screw up this one? Imagine we have […]
One of the nicer features that is present in C# (and not in C++) is the ability to have constraints on template parameters.
Say, for example, you wanted to create a Set class that holds a set of unique objects. We could write a simple Set class that checks if an item exists prior to adding it. To extend it, we could make it a template class so that it would accept any object, and we would be done.
But what if we wanted to use a function such as IsEquivalent() on our template parameter? How can we be sure that our template parameter defines a given function?
In a language that implements derivation constraints, this is fairly straightforward. We simply write […]