"default template arguments may not be used in function templates"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have the following class:

template <typename T, typename Synchronizer = synchronizer::None, typename
Creator = T * (*)()>
class value_cache
{
  ***

public:  //interface

  boost::shared_ptr<T> Get() const
  {
    Synchronizer synchronizer();

    ***
    ***
  }
};

But gcc reports this error message at compile time:

"default template arguments may not be used in function templates"

for the declaration of synchronizer().

I use gcc 3.3.4

Does someone see the problem ?

Thank you

Vincent Torri

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux