Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/matplot/core/axes_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ namespace matplot {

explicit axes_object(axes_handle parent);

virtual ~axes_object() = default;

public:
virtual double xmax();
virtual double xmin();
Expand Down
4 changes: 2 additions & 2 deletions source/matplot/util/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,8 @@ namespace matplot {

// Initial calculations
if (log) {
std::invalid_argument("Not implemented yet. The library does not "
"need that as it is.");
throw std::invalid_argument("Not implemented yet. The library does "
"not need that as it is.");
}

// Data range
Expand Down
7 changes: 4 additions & 3 deletions source/matplot/util/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,10 @@ namespace matplot {
/// \brief Helper method for determining the whole array size.
/// Required for caching inner vector's size.
std::size_t calculate_size(const vector_2d &vec) {
return std::accumulate(
vec.begin(), vec.end(), (std::size_t)(0),
[](auto cnt, const auto &vec) { return cnt + vec.size(); });
return std::accumulate(vec.begin(), vec.end(), (std::size_t)(0),
[](auto cnt, const auto &inner_vec) {
return cnt + inner_vec.size();
});
}

public:
Expand Down