Skip to content

Commit

Permalink
Fix constexpr related compile-time error (#54)
Browse files Browse the repository at this point in the history
Functions containing asm cannot be marked constexpr
  • Loading branch information
Pharap authored Jan 20, 2019
1 parent 2cb46ff commit 066a860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Minesweeper/Utils/ProgmemUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace Details
template< typename T >
struct ProgmemReadHelper<T, 1>
{
constexpr inline static T ProgmemRead(T const * const progmem)
inline static T ProgmemRead(T const * const progmem)
{
return static_cast<T>(pgm_read_byte(progmem));
}
Expand All @@ -49,7 +49,7 @@ namespace Details
template< typename T >
struct ProgmemReadHelper<T, 2>
{
constexpr inline static T ProgmemRead(T const * const progmem)
inline static T ProgmemRead(T const * const progmem)
{
return static_cast<T>(pgm_read_word(progmem));
}
Expand All @@ -58,7 +58,7 @@ namespace Details
template< typename T >
struct ProgmemReadHelper<T*, 2>
{
constexpr inline static T * ProgmemRead(T const * const * const progmem)
inline static T * ProgmemRead(T const * const * const progmem)
{
return reinterpret_cast<T *>(pgm_read_word(progmem));
}
Expand Down

0 comments on commit 066a860

Please sign in to comment.