#include <iostream>
#include <type_traits>
using namespace std;

// Declaration in the .h file
class MyClass
{
	public:
    template <class T> void function(T&& x) noexcept(std::is_nothrow_constructible<T>::value);
};

// Definition in the .cpp file
template <class T> void MyClass::function(T&& x) noexcept(std::is_nothrow_constructible<T>::value)
{}

int main() {
	MyClass x;
	x.function(0);
	return 0;
}