fpga_clock: Don't use constexpr for time_points.

These are not constexpr on some compilers.
This commit is contained in:
Peter Johnson
2017-08-19 22:56:58 -07:00
parent 8b460f5944
commit d3b636d073
2 changed files with 6 additions and 5 deletions

View File

@@ -11,7 +11,9 @@
#include "llvm/raw_ostream.h"
namespace hal {
constexpr fpga_clock::time_point fpga_clock::min_time;
const fpga_clock::time_point fpga_clock::min_time =
fpga_clock::time_point(fpga_clock::duration(
std::numeric_limits<fpga_clock::duration::rep>::min()));
fpga_clock::time_point fpga_clock::now() noexcept {
int32_t status = 0;