Category : alias

I want to create an alias for ‘jupyter notebook’ in windows powershell. I ran the following command: Set-Alias -Name jup -Value jupyter notebook It triggered following error: Set-Alias : A positional parameter cannot be found that accepts argument ‘notebook’. At line:1 char:1 + Set-Alias -Name jup -Value jupyter notebook + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: ..

Read more

I am banging my head around why the following leads to a compile error. I am a novice in meta programming but to my understanding of SFINAE principle the following functions are mutually exclusive hence it is not a ‘redefinition’ of an existing function. #include <type_traits> template<typename T> using IsNotEnum = typename std::enable_if<!std::is_enum<T>::value>::type; template<typename T> ..

Read more

Let’s say I have a function called get_color: std::string get_color() { return "green"; } I also want to have the same function but with the en-gb spelling. So get_colour. I could just make an identical function and call the get_color function like this: std::string get_colour() { return get_color() } but this can get very tricky ..

Read more