Welcome to mirror list, hosted at ThFree Co, Russian Federation.

const_helper.hpp « base - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5a71a9336f7f40e99c98a61f09c6248057d9b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

namespace my
{
  template <typename TFrom, typename TTo> struct PropagateConst
  {
    typedef TTo type;
  };
  template <typename TFrom, typename TTo> struct PropagateConst<TFrom const, TTo>
  {
    typedef TTo const type;
  };
}