Skip to content

Commit

Permalink
add missing inline to imageMax()
Browse files Browse the repository at this point in the history
  • Loading branch information
szhorvat committed Oct 31, 2017
1 parent b24b27b commit 0b4461e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LTemplate/IncludeFiles/LTemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -1237,16 +1237,16 @@ typedef im_byte_t im_bit8_t; ///< Alias for \ref im_byte_t
* The value representing "black" is always 0.
*/
template<typename T>
T imageMax() { return std::numeric_limits<T>::max(); }
inline T imageMax() { return std::numeric_limits<T>::max(); }

template<>
im_bit_t imageMax() { return 1; }
inline im_bit_t imageMax() { return 1; }

template<>
im_real32_t imageMax() { return 1.0f; }
inline im_real32_t imageMax() { return 1.0f; }

template<>
im_real_t imageMax() { return 1.0; }
inline im_real_t imageMax() { return 1.0; }

namespace detail { // private
template<typename T> inline imagedata_t libraryImageType() {
Expand Down

0 comments on commit 0b4461e

Please sign in to comment.