OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Make asterisk ambiguous in a template

  • Thread starter Thread starter ByteEater
  • Start date Start date
B

ByteEater

Guest
There is, IIRC, a way to write a template in which the same occurrence of an asterisk means multiplication in one instance and pointer type (likely in a variable declaration) in another. How do I know? I read it some time ago in an answer on SO! But search tools have failed to lead me back there (or perhaps it was deleted).

Can somebody who knows C++ intricacies well provide an example?

Either a newly written example or a link to one. Preferably to that answer I seem to have seen.
Continue reading...
 
Top