| 1 | // (C) Copyright Gennadiy Rozental 2005. |
|---|
| 2 | // Distributed under the Boost Software License, Version 1.0. |
|---|
| 3 | // (See accompanying file LICENSE_1_0.txt or copy at |
|---|
| 4 | // http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 5 | |
|---|
| 6 | // See http://www.boost.org/libs/test for the library home page. |
|---|
| 7 | // |
|---|
| 8 | // File : $RCSfile: assign_op.hpp,v $ |
|---|
| 9 | // |
|---|
| 10 | // Version : $Revision: 1.1 $ |
|---|
| 11 | // |
|---|
| 12 | // Description : overloadable assignment |
|---|
| 13 | // *************************************************************************** |
|---|
| 14 | |
|---|
| 15 | #ifndef BOOST_TEST_ASSIGN_OP_033005GER |
|---|
| 16 | #define BOOST_TEST_ASSIGN_OP_033005GER |
|---|
| 17 | |
|---|
| 18 | namespace boost { |
|---|
| 19 | |
|---|
| 20 | namespace unit_test { |
|---|
| 21 | |
|---|
| 22 | // ************************************************************************** // |
|---|
| 23 | // ************** generic assign operator ************** // |
|---|
| 24 | // ************************************************************************** // |
|---|
| 25 | |
|---|
| 26 | // generic |
|---|
| 27 | template<typename T,typename S> |
|---|
| 28 | inline void |
|---|
| 29 | assign_op( T& t, S const& s, long ) |
|---|
| 30 | { |
|---|
| 31 | t = s; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | //____________________________________________________________________________// |
|---|
| 35 | |
|---|
| 36 | } // namespace unit_test |
|---|
| 37 | |
|---|
| 38 | } // namespace boost |
|---|
| 39 | |
|---|
| 40 | // *************************************************************************** |
|---|
| 41 | // Revision History: |
|---|
| 42 | // |
|---|
| 43 | // $Log: assign_op.hpp,v $ |
|---|
| 44 | // Revision 1.1 2005/04/12 06:48:12 rogeeff |
|---|
| 45 | // Runtime.Param library initial commit |
|---|
| 46 | // |
|---|
| 47 | // *************************************************************************** |
|---|
| 48 | |
|---|
| 49 | #endif // BOOST_TEST_ASSIGN_OP_033005GER |
|---|
| 50 | |
|---|