Code Rulers Software - English Version
Programming through Life
  • Home
  • Programming
    • C#
    • C++
  • Download
  • Services
  • About Me
Browse: Home / templates

templates

Template definition and declaration separation

By Real_Noname on 08/10/2013

One of the more annoying things about templates is their requirement  of one source file per object definition. You cannot have separate declaration in an header and a definition in separate source file. At the time of template usage ALL its definition must be known. But there is a neat trick I found while reading […]

Posted in C++, Programming | Tagged c++, code design, programming, templates | Leave a response

Template dynamic casting… or better trust your time-proofed code

By Real_Noname on 08/10/2013

While writing my little API framework I run into a rather strange problem – my smart pointer code started to throw null pointer exception. It only did that when there was an attempt to assign a null pointer to it (that should never happen).

Posted in C++, Programming | Tagged c++, errors, polymorphism, programming, templates | Leave a response

Search

Archives

  • October 2013
  • October 2010
  • September 2010

Tags

c# c++ code design delegate errors event polymorphism programming sample templates winapi windows

Copyright © 2025 Code Rulers Software - English Version.

Powered by WordPress and Hybrid.