// // 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 #include #include int main() { using boost::date_time::pos_infin; using boost::posix_time::minutes; boost::ignore_unused(minutes(static_cast(pos_infin))); // compiles: it's an integral boost::ignore_unused(minutes(pos_infin)); // won't compile: not an integral return 1; // return an error if we actually run for some reason }