mirror of
https://github.com/boostorg/date_time.git
synced 2026-01-27 06:42:21 +00:00
20 lines
808 B
C++
20 lines
808 B
C++
//
|
|
// Copyright (c) 2017 James E. King III
|
|
// Use, modification and distribution is subject to the
|
|
// Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
|
|
#include <boost/core/ignore_unused.hpp>
|
|
#include <boost/date_time/posix_time/posix_time_duration.hpp>
|
|
#include <boost/date_time/special_defs.hpp>
|
|
|
|
int main()
|
|
{
|
|
using boost::date_time::pos_infin;
|
|
using boost::posix_time::seconds;
|
|
boost::ignore_unused(seconds(static_cast<boost::int64_t>(pos_infin))); // compiles: it's an integral
|
|
boost::ignore_unused(seconds(pos_infin)); // won't compile: not an integral
|
|
return 1; // return an error if we actually run for some reason
|
|
}
|