In file included from scancodesTest.cpp:9:0:
ScancodeInstantiations.h: In constructor ‘ScancodeInstantiations::ScancodeInstantiations()’:
ScancodeInstantiations.h:35:17: error: no match for ‘operator=’ (operand types are ‘std::vector<Scancodes>’ and ‘<brace-enclosed initializer list>’)
};
^
In file included from /usr/include/c++/6.2.1/vector:69:0,
from Layout.h:7,
from scancodesTest.cpp:8:
/usr/include/c++/6.2.1/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = Scancodes; _Alloc = std::allocator<Scancodes>]
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/6.2.1/bits/vector.tcc:167:5: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::vector<Scancodes>&’
In file included from /usr/include/c++/6.2.1/vector:64:0,
from Layout.h:7,
from scancodesTest.cpp:8:
/usr/include/c++/6.2.1/bits/stl_vector.h:450:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = Scancodes; _Alloc = std::allocator<Scancodes>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^~~~~~~~
/usr/include/c++/6.2.1/bits/stl_vector.h:450:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Scancodes>&&’
/usr/include/c++/6.2.1/bits/stl_vector.h:471:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = Scancodes; _Alloc = std::allocator<Scancodes>]
operator=(initializer_list<value_type> __l)
^~~~~~~~
/usr/include/c++/6.2.1/bits/stl_vector.h:471:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::initializer_list<Scancodes>’
scancodesMakefile:14: recipe for target 'scancodesTest.o' failed
make: *** [scancodesTest.o] Error 1
Your code would have worked if name and scancode were simply strings. Now they are vectors so you need to add an extra pair of curly brackets around them.