Commit b263425a authored by Paul's avatar Paul
Browse files

Tidy fixes

parent a9325a54
...@@ -141,7 +141,7 @@ struct instruction ...@@ -141,7 +141,7 @@ struct instruction
static void static void
replace(instruction_ref ins, operation o, const shape& r, std::vector<instruction_ref> args) replace(instruction_ref ins, operation o, const shape& r, std::vector<instruction_ref> args)
{ {
ins->replace(o, r, std::move(args)); ins->replace(std::move(o), r, std::move(args));
backreference(ins); backreference(ins);
} }
......
...@@ -15,19 +15,19 @@ struct stowed ...@@ -15,19 +15,19 @@ struct stowed
template <class Tag> template <class Tag>
typename Tag::type stowed<Tag>::value; typename Tag::type stowed<Tag>::value;
template <class Tag, typename Tag::type x> template <class Tag, typename Tag::type X>
struct stow_private struct stow_private
{ {
stow_private() { stowed<Tag>::value = x; } stow_private() noexcept { stowed<Tag>::value = X; }
static stow_private instance; static stow_private instance;
}; };
template <class Tag, typename Tag::type x> template <class Tag, typename Tag::type X>
stow_private<Tag, x> stow_private<Tag, x>::instance; stow_private<Tag, X> stow_private<Tag, X>::instance;
template <class C, class T> template <class C, class T>
struct mem_data_ptr struct mem_data_ptr
{ {
typedef T(C::*type); using type = T C::*;
}; };
#define MIGRAPH_ROB(name, Type, C, mem) \ #define MIGRAPH_ROB(name, Type, C, mem) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment