Use the std::tr1::function Class to Generalize Callbacks
or a C++ programmer, the term “a callback function” means at least three different things: a pointer to a freestanding function (i.e., a C function), a pointer to a member
or a C++ programmer, the term “a callback function” means at least three different things: a pointer to a freestanding function (i.e., a C function), a pointer to a member
onversion operators are a dilemma. While they certainly make the usage of certain objects convenient and intuitive, they also compromise type safety, ultimately leading to unexpected runtime behavior. The following
o far, there’s been plenty of ink expended on ASP.NET 2.0’s site navigation controls, but most of that coverage lacks details on how to use the new navigation features in
he keywords final and sealed in Java and C# respectively ensure that a certain class shall not be subclassed. C++ doesn’t have a similar keyword. Naive programmers are often tempted
icrosoft released SharePoint to the market back in 2000/2001 and, in doing so, began a shift in perception about how Web applications are built. The change was slow at first
ontrolling the number of fractional digits after the decimal point is a common requirement in various application domains?including dialog boxes, relational databases, financial applications, SMS messages, and when processing data
bject reflection libraries, debugging tools, and code analyzers often need to access functions’ names at runtime. Until not long ago, the only portable way to accomplish this was to manually
o matter how well you write and understand high-level programming languages, your applications can probably benefit if you’re willing to dig down into the lower-level code that makes the computer
n classic Gang of Four book. Similarly, the term “algorithm” used in this context refers to the implementation of an ordinary member function, not the generic algorithms of STL. Redesign