Ticket #8318: 8318.patch

File 8318.patch, 1.3 KB (added by 1czajnik@…, 10 years ago)
Line 
1Index: boost/chrono/time_point.hpp
2===================================================================
3@@ -168,15 +168,18 @@
4 duration d_;
5
6 public:
7+ BOOST_FORCEINLINE
8 BOOST_CONSTEXPR
9 time_point() : d_(duration::zero())
10 {}
11+ BOOST_FORCEINLINE
12 BOOST_CONSTEXPR explicit time_point(const duration& d)
13 : d_(d)
14 {}
15
16 // conversions
17 template <class Duration2>
18+ BOOST_FORCEINLINE
19 BOOST_CONSTEXPR
20 time_point(const time_point<clock, Duration2>& t
21 , typename boost::enable_if
22Index: boost/chrono/duration.hpp
23===================================================================
24@@ -433,9 +433,11 @@
25 rep rep_;
26 public:
27
28+ BOOST_FORCEINLINE
29 BOOST_CONSTEXPR
30 duration() : rep_(duration_values<rep>::zero()) { }
31 template <class Rep2>
32+ BOOST_FORCEINLINE
33 BOOST_CONSTEXPR
34 explicit duration(const Rep2& r
35 , typename boost::enable_if <
36@@ -462,6 +464,7 @@
37
38 // conversions
39 template <class Rep2, class Period2>
40+ BOOST_FORCEINLINE
41 BOOST_CONSTEXPR
42 duration(const duration<Rep2, Period2>& d
43 , typename boost::enable_if <