File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed
doc/modules/ROOT/examples/shared_libs Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ int main() {
4141 // end::unload[]
4242 std::cout << " Before loading the shared library.\n " ;
4343
44- initialize ();
44+ boost::openmethod:: initialize ();
4545
4646 std::cout << " cow meets wolf -> "
4747 << meet (*std::make_unique<Cow>(), *std::make_unique<Wolf>())
@@ -60,7 +60,7 @@ int main() {
6060 boost::dll::shared_library lib (
6161 boost::dll::program_location ().parent_path () / LIBRARY_NAME,
6262 boost::dll::load_mode::rtld_now);
63- initialize ();
63+ boost::openmethod:: initialize ();
6464
6565 std::cout << " cow meets wolf -> "
6666 << meet (*std::make_unique<Cow>(), *std::make_unique<Wolf>())
@@ -83,7 +83,7 @@ int main() {
8383 std::cout << " \n After unloading the shared library.\n " ;
8484
8585 lib.unload ();
86- initialize ();
86+ boost::openmethod:: initialize ();
8787
8888 std::cout << " cow meets wolf -> "
8989 << meet (*std::make_unique<Cow>(), *std::make_unique<Wolf>())
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ auto main() -> int {
3737 using namespace boost ::openmethod::aliases;
3838
3939 std::cout << " Before loading the shared library.\n " ;
40- initialize ();
40+ boost::openmethod:: initialize ();
4141
4242 auto gracie = make_unique_virtual<Cow>();
4343 auto willy = make_unique_virtual<Wolf>();
@@ -53,7 +53,7 @@ auto main() -> int {
5353 boost::dll::program_location ().parent_path () / LIBRARY_NAME,
5454 boost::dll::load_mode::rtld_now);
5555
56- initialize ();
56+ boost::openmethod:: initialize ();
5757
5858 std::cout << " cow meets wolf -> " << meet (*gracie, *willy) << " \n " ; // run
5959 std::cout << " wolf meets cow -> " << meet (*willy, *gracie) << " \n " ; // hunt
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ auto make_tiger() -> Animal*;
3030}
3131
3232auto main () -> int {
33- initialize ();
33+ boost::openmethod:: initialize ();
3434
3535 std::unique_ptr<Animal> gracie (new Cow ());
3636 std::unique_ptr<Animal> willy (new Wolf ());
Original file line number Diff line number Diff line change @@ -1679,10 +1679,6 @@ inline auto finalize(Options... opts) -> void {
16791679 Registry::finalize (std::forward<Options>(opts)...);
16801680}
16811681
1682- namespace aliases {
1683- using boost::openmethod::initialize;
1684- }
1685-
16861682} // namespace boost::openmethod
16871683
16881684#ifdef _MSC_VER
You can’t perform that action at this time.
0 commit comments