mirror of https://github.com/procxx/kepka.git
				
				
				
			Fixed build.
This commit is contained in:
		
							parent
							
								
									5b3ac58578
								
							
						
					
					
						commit
						5d37517eac
					
				| 
						 | 
					@ -90,7 +90,7 @@ inline constexpr typename remove_reference<T>::type &&move(T &&value) noexcept {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
template <typename T>
 | 
					template <typename T>
 | 
				
			||||||
void swap(T &a, T &b) {
 | 
					void swap_moveable(T &a, T &b) {
 | 
				
			||||||
	T tmp = move(a);
 | 
						T tmp = move(a);
 | 
				
			||||||
	a = move(b);
 | 
						a = move(b);
 | 
				
			||||||
	b = move(tmp);
 | 
						b = move(tmp);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -90,7 +90,7 @@ inline void accumulate_min(T &a, const T &b) { if (a > b) a = b; }
 | 
				
			||||||
template <typename T>
 | 
					template <typename T>
 | 
				
			||||||
T createAndSwap(T &value) {
 | 
					T createAndSwap(T &value) {
 | 
				
			||||||
	T result = T();
 | 
						T result = T();
 | 
				
			||||||
	std_::swap(result, value);
 | 
						std_::swap_moveable(result, value);
 | 
				
			||||||
	return std_::move(result);
 | 
						return std_::move(result);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,6 +20,8 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "core/stl_subset.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// some minimal implementation of std::vector() for moveable (but not copiable) types.
 | 
					// some minimal implementation of std::vector() for moveable (but not copiable) types.
 | 
				
			||||||
namespace std_ {
 | 
					namespace std_ {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue