]> git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/common/utility.h
import quincy beta 17.1.0
[ceph.git] / ceph / src / crimson / common / utility.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
2 // vim: ts=8 sw=2 smarttab expandtab
3
4 #pragma once
5
6 #include <type_traits>
7
8 namespace _impl {
9 template <class T> struct always_false : std::false_type {};
10 };
11
12 template <class T>
13 void assert_moveable(T& t) {
14 // It's fine
15 }
16 template <class T>
17 void assert_moveable(const T& t) {
18 static_assert(_impl::always_false<T>::value, "unable to move-out from T");
19 }
20