Skip to content

Commit

Permalink
Make human_readable_memory() inline
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Jul 23, 2018
1 parent 7db081b commit 9faf485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amgcl/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ T eps(size_t n) {
template <class T> struct is_complex : std::false_type {};
template <class T> struct is_complex< std::complex<T> > : std::true_type {};

std::string human_readable_memory(size_t bytes) {
inline std::string human_readable_memory(size_t bytes) {
static const char *suffix[] = {"B", "K", "M", "G", "T"};

int i = 0;
Expand Down

0 comments on commit 9faf485

Please sign in to comment.