Top "Default-arguments" questions

A default argument is a value passed to a certain parameter of a function if the user does not explicitly supply a value for that parameter.

What if the lambda expression of C++11 supports default arguments?

I think the following code is very handy and no harmful: auto fn = [](bool b = false) -> int // NOT …

c++ c++11 lambda default-arguments
Kotlin: how to make a function call using the first argument's default value and passing a value for the second?

I'd like to know how to call a function with default arguments when you want to specify the value of …

kotlin default-arguments
How to initialize "unsigned char *" with default argument in C++?

I have a class with a method with the following signature: void print(unsigned char *word); I need to set "" …

c++ initialization default-arguments
Can I bind to a function that takes default arguments and then call it?

How can I bind to a function that takes default arguments, without specifying the default arguments and then call it …

c++ c++11 bind default-arguments
Problem with bounded type parameterised case class and default args in Scala

Consider the following (tested with Scala 2.8.1 and 2.9.0): trait Animal class Dog extends Animal case class AnimalsList[A <: Animal](list:…

scala case-class default-arguments