built-in data type conversion to user defined data type c++
<p>My question is regarding data type conversion in c++. Does c++ provides a implicit conversion for built-in data types ( int, float) to user defined data types?</p>

<p>In the following example, I am trying to add a double ( t4 = t3 + 1.0) with test object type and its working fine using + operator so is the double implicitly converted to test type object?  </p>

<pre><code>class test {
double d;
int m;
public:
test()
{
    d=0;
    m=0;
}
test(double n)
{
    d=n;
}
const test operator+(const test&amp; t)
{
    test temp;
    temp.d = d+ t.d;
    return temp;
}
};

int main()
{
   test t1(1.2);
   test t2(2.5);
   test t3, t4;
   t3= t1+ t2;
   t4 = t3 + 1.0;
   return 0;
 }
</code></pre>
