POV-Ray : Newsgroups : povray.off-topic : C++ questions : Re: C++ questions Server Time
7 Sep 2024 15:24:39 EDT (-0400)
  Re: C++ questions  
From: Nicolas Alvarez
Date: 26 Sep 2008 17:14:20
Message: <48dd50ac@news.povray.org>
Invisible wrote:
> (E.g., apparently you can overload the "->" operator... GAH! >_< OK, I
> am *so* not trying that out!)

You can overload the comma operator!

boost::assign does some nasty stuff with it, to let you add stuff to STL
containers like this:

std::vector<int> mylist;
mylist += 1,2,3,4; // uses overloaded += and , operators


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.