Unless I'm misunderstanding, you're trying to pass a value by name to a function. That is not a thing in C nor C++. However if you want to name the arguments, you can do so with comments:
/* print = */ print On Thu, Jun 6, 2024, 19:16 Søren Højsgaard via R-package-devel < r-package-devel@r-project.org> wrote: > Dear all, > > From CRAN maintainers I recieve: > > > Flavor: r-devel-linux-x86_64-debian-gcc > Check: whether package can be installed, Result: WARNING > Found the following significant warnings: > grips_fit_ips.cpp:149:45: warning: explicitly assigning value of > variable of type 'int' to itself [-Wself-assign] > grips_fit_ips.cpp:213:16: warning: explicitly assigning value of > variable of type 'int' to itself [-Wself-assign] > grips_fit_ips.cpp:254:10: warning: explicitly assigning value of > variable of type 'int' to itself [-Wself-assign] > grips_fit_ips.cpp:254:21: warning: explicitly assigning value of > variable of type 'double' to itself [-Wself-assign] > > > > The first warning pertains to the line: > > conips_inner_(S, K, elst0, clist0, print=print); > > print on lhs of "=" is the formal name and print on rhs of "=" the name of > a variable. Does the compiler think I assign an integer > to itself? Like if I write > > int a=7; > a=a; > > Can anyone help me throw light on this? > > Thanks in advance > Søren > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel