~ubuntu-branches/ubuntu/wily/davix/wily

« back to all changes in this revision

Viewing changes to deps/boost_intern/src/thread/test/sync/mutual_exclusion/synchronized_value/copy_T_assign_pass.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2015-07-31 13:17:55 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150731131755-mizprbmn7ogv33te
Tags: 0.4.1-1
* Update to version 0.4.1
* Implement Multi-Arch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2013 Vicente J. Botet Escriba
2
 
//
3
 
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
4
 
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
 
 
6
 
// <boost/thread/synchronized_value.hpp>
7
 
 
8
 
// class synchronized_value<T,M>
9
 
 
10
 
// synchronized_value& operator=(T const&);
11
 
 
12
 
#define BOOST_THREAD_VERSION 4
13
 
 
14
 
#include <boost/thread/synchronized_value.hpp>
15
 
 
16
 
#include <boost/detail/lightweight_test.hpp>
17
 
 
18
 
int main()
19
 
{
20
 
 
21
 
  {
22
 
    int i = 1;
23
 
    boost::synchronized_value<int> v;
24
 
    v = i;
25
 
    BOOST_TEST(v.value() == 1);
26
 
  }
27
 
 
28
 
  return boost::report_errors();
29
 
}
30