File: source2.cc

package info (click to toggle)
c%2B%2B-annotations 13.04.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,636 kB
  • sloc: cpp: 25,471; makefile: 1,521; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (12 lines) | stat: -rw-r--r-- 225 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
    #include <iostream>
    #include "pointerunion.h"

    template<typename Type>
    Type add(Type const &, Type const &);

    void fun()
    {
        PointerUnion pu = { add };

        std::cout << pu.vp << '\n';
    }