[FX-490] Compile errors on OS X - Fix8 JIRA

Compile errors on OS X

Description

1.3.3 broken on OSX. Looks like some incompatibility with std::chrono::high_resolution_clock.

In file included from xml.cpp:38:
In file included from ../include/fix8/f8includes.hpp:84:
../include/fix8/tickval.hpp:67:34: error: in-class initializer for static data member is not a constant expression
static const ticks errorticks = f8_time_point::max().time_since_epoch().count(); // 2262-04-12 09:47:16.854775807
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/fix8/tickval.hpp:102:12: error: no member named 'from_time_t' in 'std::__1::chrono::steady_clock'; did you mean 'std::chrono::system_clock::from_time_t'?
: _value(std::chrono::high_resolution_clock::from_time_t(secs) + std::chrono::duration_cast<duration>(std::chrono::nanoseconds(nsecs))) {}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
std::chrono::system_clock::from_time_t
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/chrono:926:23: note: 'std::chrono::system_clock::from_time_t' declared here
static time_point from_time_t(time_t __t) _NOEXCEPT;
^
In file included from xml.cpp:38:
In file included from ../include/fix8/f8includes.hpp:84:
../include/fix8/tickval.hpp:102:5: error: no matching constructor for initialization of 'f8_time_point' (aka 'time_point<std::chrono::high_resolution_clock>')
: _value(std::chrono::high_resolution_clock::from_time_t(secs) + std::chrono::duration_cast<duration>(std::chrono::nanoseconds(nsecs))) {}
In file included from xml.cpp:38:
In file included from ../include/fix8/f8includes.hpp:84:
../include/fix8/tickval.hpp:196:60: error: no viable conversion from 'const time_point<std::chrono::high_resolution_clock>' to 'const time_point<std::__1::chrono::system_clock>'
const time_t insecs(std::chrono::system_clock::to_time_t(_value));

fix8-1.3.3 shawn$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

fix8-1.3.3 shawn$ autoconf -V
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.

Environment

None

Status

Assignee

David Dight

Reporter

David Dight

Labels

Branch

dev

Products

All

Components

Fix versions

Affects versions

1.3.3

Priority

Major