Skip to content

Commit

Permalink
rename test for make_shared and improve make_shared doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Ponza committed Jul 5, 2019
1 parent 32cbdc2 commit a4c809b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/include/pcl/impl/point_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
Expand Down
5 changes: 4 additions & 1 deletion common/include/pcl/make_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ namespace pcl
#ifdef DOXYGEN_ONLY

/**
* \brief Returns a boost::shared_ptr regardless of type T's allocation policy
* \brief Returns a boost::shared_ptr compliant with type T's allocation policy.
*
* boost::allocate_shared or boost::make_shared will be invoked in case T has or
* doesn't have a custom allocator, respectively.
*
* \see pcl::has_custom_allocator, PCL_MAKE_ALIGNED_OPERATOR_NEW
* \tparam T Type of the object to create a boost::shared_ptr of
Expand Down
2 changes: 1 addition & 1 deletion test/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PCL_ADD_TEST(common_bearing_angle_image test_bearing_angle_image FILES test_bear

PCL_ADD_TEST(common_point_type_conversion test_common_point_type_conversion FILES test_point_type_conversion.cpp LINK_WITH pcl_gtest pcl_common)
PCL_ADD_TEST(common_colors test_colors FILES test_colors.cpp LINK_WITH pcl_gtest pcl_common)
PCL_ADD_TEST(common_make_shared test_make_shared FILES test_make_shared.cpp LINK_WITH pcl_gtest pcl_common)
PCL_ADD_TEST(common_type_traits test_type_traits FILES test_type_traits.cpp LINK_WITH pcl_gtest pcl_common)

if(BUILD_io)
PCL_ADD_TEST(common_centroid test_centroid FILES test_centroid.cpp LINK_WITH pcl_gtest pcl_io ARGUMENTS "${PCL_SOURCE_DIR}/test/bun0.pcd")
Expand Down
File renamed without changes.

0 comments on commit a4c809b

Please sign in to comment.