Use boost::declval instead of std::declval, close #10190.

Thanks-to: Niklas Angare
Merge pull request #30 from Flast/bugfix/10190/declval

Use boost::declval instead of std::declval, close #10190.