Files
dl_old/third/pybind11/tests/test_cross_module_rtti/lib.cpp
T
2026-02-28 11:58:41 +08:00

14 lines
221 B
C++
Vendored

#include <lib.h>
namespace lib {
Base::Base(int a, int b) : a(a), b(b) {}
int Base::get() const { return a + b; }
Foo::Foo(int a, int b) : Base{a, b} {}
int Foo::get() const { return 2 * a + b; }
} // namespace lib