File: TestPimpl1.cpp

package info (click to toggle)
simbody 3.7%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,892 kB
  • sloc: cpp: 248,827; ansic: 18,240; sh: 29; makefile: 25
file content (35 lines) | stat: -rwxr-xr-x 659 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#include "SimTKsimbody.h"
#pragma warning(disable:4661)
class Element;
class ElementRep;

//extern template class /*__declspec(dllimport)*/ SimTK::PIMPLHandle<Element, ElementRep>;


class /*__declspec(dllexport)*/ Element : public SimTK::PIMPLHandle<Element,ElementRep> {
public:
};



#include "SimTKcommon/internal/PrivateImplementation_Defs.h"

#include <iostream>

int main() 
{
    std::cout << "passed" << std::endl;

    Element e;

    return 0;
}


class ElementRep : public SimTK::PIMPLImplementation<Element,ElementRep> {
public:
    ElementRep* clone() const {return new ElementRep();}
};

template class SimTK::PIMPLHandle<Element,ElementRep>;