Boost logo

Boost Users :

Subject: Re: [Boost-users] [non Boost] Template troubles.
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2008-12-10 13:37:56


I've made your problem simpler:

#include <cstddef>

template < typename T >
   void assign( T & assignee, const T & value )
{}

int main( )
{
   int a;
   int const b = 0;

   assign(a, b); // works.

   int x[4];
   int const y[4] = {};

   assign (x,y); // ambiguous T.
}


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net