Skip to content

Commit 52c5b89

Browse files
committed
do not put initialize in aliases
1 parent ed435e8 commit 52c5b89

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

doc/modules/ROOT/examples/shared_libs/dynamic_main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 << "\nAfter 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>())

doc/modules/ROOT/examples/shared_libs/indirect_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

doc/modules/ROOT/examples/shared_libs/static_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ auto make_tiger() -> Animal*;
3030
}
3131

3232
auto 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());

include/boost/openmethod/initialize.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)