File: lib.h

package info (click to toggle)
pybind11 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,448 kB
  • sloc: cpp: 27,239; python: 13,512; ansic: 4,244; makefile: 204; sh: 36
file content (30 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
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
#pragma once

#include <memory>
#include <test_cross_module_rtti_lib_export.h>

#if defined(_MSC_VER)
__pragma(warning(disable : 4251))
#endif

    namespace lib {

    class TEST_CROSS_MODULE_RTTI_LIB_EXPORT Base : public std::enable_shared_from_this<Base> {
    public:
        Base(int a, int b);
        virtual ~Base() = default;

        virtual int get() const;

        int a;
        int b;
    };

    class TEST_CROSS_MODULE_RTTI_LIB_EXPORT Foo : public Base {
    public:
        Foo(int a, int b);

        int get() const override;
    };

} // namespace lib