Skip to content

Commit

Permalink
For compilation, might be temp
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Mar 1, 2020
1 parent 6507970 commit 8a9bc5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions octree/include/pcl/octree/octree_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@

#pragma once

#include <cstddef>
#include <pcl/pcl_macros.h>

#include <vector>

#include <pcl/pcl_macros.h>
#include <cassert>
#include <cstddef>

namespace pcl {
namespace octree {
Expand Down
4 changes: 3 additions & 1 deletion octree/include/pcl/octree/octree_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

#pragma once

#include <cstring> // for memcpy

namespace pcl {
namespace octree {
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -57,7 +59,7 @@ class OctreeKey {
{}

/** \brief Copy constructor. */
OctreeKey(const OctreeKey& source) { memcpy(key_, source.key_, sizeof(key_)); }
OctreeKey(const OctreeKey& source) { std::memcpy(key_, source.key_, sizeof(key_)); }

OctreeKey&
operator=(const OctreeKey&) = default;
Expand Down

0 comments on commit 8a9bc5e

Please sign in to comment.