mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
* test: Added test case for visibility of common symbols across shared libraries * style: pre-commit fixes * tests: cmake target name fix * tests: Added visibility test to ci * tests: set the default visibility to hidden * prototype/proof-of-concept fix: PYBIND11_EXPORT_GUARDED_DELETE * Fix silly oversight: actually use PYBIND11_EXPORT_GUARDED_DELETE * Update struct_smart_holder.h * style: pre-commit fixes * Update include/pybind11/detail/struct_smart_holder.h * Update struct_smart_holder.h * ci: fix addition to reusable-standard.yml * Update CMakeLists.txt * refactor: rename tests to test_cross_module_rtti Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com> Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
31 lines
573 B
C++
31 lines
573 B
C++
#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
|