gpucalc::Int2Type< num > Struct Template Reference

Template struct which creates a distinct type for each exception code. More...

#include <utils.h>

List of all members.

Public Types

enum  { number = num }


Detailed Description

template<int num>
struct gpucalc::Int2Type< num >

Template struct which creates a distinct type for each exception code.

This is useful because it allows us to create an overloaded method for returning different exception types by value without ambiguity. From 'Modern C++ Design' (Alexandrescu 2001).

Definition at line 47 of file utils.h.


Member Enumeration Documentation

template<int num>
anonymous enum

Enumerator:
number 

Definition at line 49 of file utils.h.

00050   {
00051    number = num
00052   };


The documentation for this struct was generated from the following file:

Generated on Thu Mar 5 22:36:44 2009 for gpucalc by  doxygen 1.5.6