]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/support/as_const.hpp
Added error detection for cases such as a read's two mates having different names...
[rsem.git] / boost / fusion / support / as_const.hpp
1 /*=============================================================================
2     Copyright (c) 2012 Nathan Ridge
3
4     Distributed under the Boost Software License, Version 1.0. (See accompanying
5     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #ifndef BOOST_FUSION_SUPPORT_AS_CONST_HPP
8 #define BOOST_FUSION_SUPPORT_AS_CONST_HPP
9
10 namespace boost { namespace fusion { namespace extension
11 {
12     // A customization point that allows certain wrappers around
13     // Fusion sequence elements (e.g. adt_attribute_proxy) to be
14     // unwrapped in contexts where the element only needs to be
15     // read. The library wraps accesses to Fusion elements in
16     // such contexts with calls to this function. Users can
17     // specialize this function for their own wrappers.
18     template <typename T>
19     const T& as_const(const T& obj)
20     {
21         return obj;
22     }
23
24 }}}
25
26 #endif