c++14 - Counterpart to std::enable_if_t -


std::enable_if_t gets type if value true. want thing gets type if expression well-formed. if type want void, can decltype((void)(expr)). should if want other void? want succinct , elegant solution.

you can use this:

template<typename t> struct well_formed : std::true_type{}; 

and combine enable_if_t


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -