Top "Implicit-conversion" questions

Converting an object, variable or value from one type to another to satisfy a type restriction, without specifically requesting that conversion through language syntax.

Implicit data type conversion in JavaScript when comparing integer with string using ==

The code: var num = 20; if(num == "20") { alert("It works"); } else { alert("Not working"); } The question: In C programming we have …

javascript implicit-conversion comparison-operators
implicit conversion changes signedness 'int" to 'unsigned int"

I was using clang++ to compile the program and I need to compile it with no error in clang++. I …

c++ implicit-conversion memset
passing const pointer by reference

I am confused that why following code is not able to compile int foo(const float* &a) { return 0; } int …

c++ reference constants implicit-conversion pointer-conversion
lvalue to rvalue implicit conversion

I see the term "lvalue-to-rvalue conversion" used in many places throughout the C++ standard. This kind of conversion is often …

c++ c++11 implicit-conversion lvalue-to-rvalue
Double pointer const-correctness warnings in C

A pointer to non-const data can be implicitly converted to a pointer to const data of the same type: int *…

c constants implicit-conversion qualifiers multiple-indirection
Implicit type promotion rules

This post is meant to be used as a FAQ regarding implicit integer promotion in C, particularly implicit promotion caused …

c type-conversion implicit-conversion
Spark Implicit $ for DataFrame

Where in the sqlContext.implicits._ does it define the $"string" to represent a dataframe call to the parent dataframe's column? …

scala apache-spark implicit-conversion
Ambiguous implicit values

I've been thinking I understand scala implicits until recently faced strange problem. In my application I have several domain classes …

scala implicit-conversion ambiguity
Warnings or errors for C++ implicit conversion of primitives

I've done some heavy refactoring of some C++ code, and discovered numerous bugs arising from implicit conversions that I'm not …

c++ gcc type-conversion implicit-conversion
"More than one operator + matches these operands" error

I'm creating a Money class for a school assignment. I've defined a conversion from Money to double, I have a …

c++ operator-overloading type-conversion implicit-conversion explicit-constructor