@@ -614,7 +614,7 @@ class virtual_ptr {
614614 obj(nullptr ) {
615615 }
616616
617- // ! Constructs a `virtual_ptr` from a reference to an object
617+ // ! Construct a `virtual_ptr` from a reference to an object
618618 // !
619619 // ! The pointer to the v-table is obtained by calling
620620 // ! @ref boost_openmethod_vptr if a suitable overload exists, or the
@@ -642,7 +642,7 @@ class virtual_ptr {
642642 // ! @par Requirements
643643 // ! @li `Other` must be a polymorphic class, according to `Registry`'s
644644 // ! `rtti` policy.
645- // ! @li `Other*` must be constructible from `Class*`.
645+ // ! @li `Other\ *` must be constructible from `Class\ *`.
646646 // !
647647 // ! @par Errors
648648 // !
@@ -662,7 +662,7 @@ class virtual_ptr {
662662 obj (&other) {
663663 }
664664
665- // ! Constructs a `virtual_ptr` from a pointer to an object
665+ // ! Construct a `virtual_ptr` from a pointer to an object
666666 // !
667667 // ! The pointer to the v-table is obtained by calling
668668 // ! @ref boost_openmethod_vptr if a suitable overload exists, or the
@@ -692,7 +692,7 @@ class virtual_ptr {
692692 // ! @li `Other` must be a polymorphic class, according to `Registry`'s
693693 // ! `rtti` policy.
694694 // !
695- // ! @li `Other*` must be constructible from `Class*`.
695+ // ! @li `Other\ *` must be constructible from `Class\ *`.
696696 // !
697697 // ! @par Errors
698698 // !
@@ -713,11 +713,9 @@ class virtual_ptr {
713713 obj(other) {
714714 }
715715
716- // ! Constructs a `virtual_ptr` from a `virtual_ptr`
717- // !
718- // ! The pointer to the v-table is copied from `other`.
716+ // ! Construct a `virtual_ptr` from another `virtual_ptr`
719717 // !
720- // ! `Other` is _not_ required to be a pointer to a polymorphic class .
718+ // ! Copy the object and v-table pointers from `other` to `this` .
721719 // !
722720 // ! @param other A virtual_ptr to a type-compatible object
723721 // !
@@ -739,7 +737,7 @@ class virtual_ptr {
739737 // !
740738 // ! @par Requirements
741739 // !
742- // ! @li `Other*` must be constructible from `Class*`.
740+ // ! @li `Other\ *` must be constructible from `Class\ *`.
743741 template <
744742 class Other ,
745743 typename = std::enable_if_t <std::is_constructible_v<
@@ -748,9 +746,9 @@ class virtual_ptr {
748746 : vp(other.vp), obj(other.get()) {
749747 }
750748
751- // ! Constructs a `virtual_ptr` from a `virtual_ptr`
749+ // ! Construct a `virtual_ptr` from another `virtual_ptr`
752750 // !
753- // ! The pointer to the v-table is copied from `other`.
751+ // ! Copy the object and v-table pointers from `other` to `this `.
754752 // !
755753 // ! `Other` is _not_ required to be a pointer to a polymorphic class.
756754 // !
@@ -774,7 +772,7 @@ class virtual_ptr {
774772 // !
775773 // ! @par Requirements
776774 // !
777- // ! @li `Other*` must be constructible from `Class*`.
775+ // ! @li `Other\ *` must be constructible from `Class\ *`.
778776 template <
779777 class Other ,
780778 typename = std::enable_if_t <std::is_constructible_v<
@@ -791,7 +789,7 @@ class virtual_ptr {
791789 // that is incorrect.
792790 }
793791
794- // ! Set a `virtual_ptr` to point to an object
792+ // ! Assign a `virtual_ptr` from a reference to an object
795793 // !
796794 // ! The pointer to the v-table is obtained by calling
797795 // ! @ref boost_openmethod_vptr if a suitable overload exists, or the
@@ -822,7 +820,7 @@ class virtual_ptr {
822820 // ! @li `Other` must be a polymorphic class, according to `Registry`'s
823821 // ! `rtti` policy.
824822 // !
825- // ! @li `Other*` must be constructible from `Class*`.
823+ // ! @li `Other\ *` must be constructible from `Class\ *`.
826824 // !
827825 // ! @par Errors
828826 // !
@@ -843,7 +841,7 @@ class virtual_ptr {
843841 return *this ;
844842 }
845843
846- // ! Set a `virtual_ptr` to point to an object
844+ // ! Assign a `virtual_ptr` from a pointer to an object
847845 // !
848846 // ! The pointer to the v-table is obtained by calling
849847 // ! @ref boost_openmethod_vptr if a suitable overload exists, or the
@@ -872,7 +870,7 @@ class virtual_ptr {
872870 // ! @par Requirements
873871 // ! @li `Other` must be a polymorphic class, according to `Registry`'s
874872 // ! `rtti` policy.
875- // ! @li `Other*` must be constructible from `Class*`.
873+ // ! @li `Other\ *` must be constructible from `Class\ *`.
876874 // !
877875 // ! @par Errors
878876 // !
@@ -893,7 +891,7 @@ class virtual_ptr {
893891 return *this ;
894892 }
895893
896- // ! Assign a `virtual_ptr` from a `virtual_ptr`
894+ // ! Assign a `virtual_ptr` from another `virtual_ptr`
897895 // !
898896 // ! The pointer to the v-table is copied from `other`.
899897 // !
@@ -919,7 +917,7 @@ class virtual_ptr {
919917 // ! @param other A virtual_ptr to a type-compatible polymorphic object
920918 // !
921919 // ! @par Requirements
922- // ! @li `Other*` must be constructible from `Class*`.
920+ // ! @li `Other\ *` must be constructible from `Class\ *`.
923921 template <
924922 class Other ,
925923 typename = std::enable_if_t <std::is_assignable_v<
0 commit comments