Skip to content

Commit

Permalink
static
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Aug 29, 2024
1 parent e434e0d commit 9c2e0c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gtsam_points/util/read_points.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace gtsam_points {

std::vector<float> read_times(const std::string& path) {
static std::vector<float> read_times(const std::string& path) {
std::ifstream ifs(path, std::ios::binary | std::ios::ate);
if (!ifs) {
std::cerr << "error: failed to open " << path << std::endl;
Expand All @@ -27,7 +27,7 @@ std::vector<float> read_times(const std::string& path) {
return times;
}

std::vector<Eigen::Vector3f> read_points(const std::string& path) {
static std::vector<Eigen::Vector3f> read_points(const std::string& path) {
std::ifstream ifs(path, std::ios::binary | std::ios::ate);
if (!ifs) {
std::cerr << "error: failed to open " << path << std::endl;
Expand All @@ -44,7 +44,7 @@ std::vector<Eigen::Vector3f> read_points(const std::string& path) {
return points;
}

std::vector<Eigen::Vector4f> read_points4(const std::string& path) {
static std::vector<Eigen::Vector4f> read_points4(const std::string& path) {
std::ifstream ifs(path, std::ios::binary | std::ios::ate);
if (!ifs) {
std::cerr << "error: failed to open " << path << std::endl;
Expand Down

0 comments on commit 9c2e0c4

Please sign in to comment.