12 Feb
                
                    2004
                
            
            
                12 Feb
                
                '04
                
            
            
            
        
    
                6:45 p.m.
            
        Noel Yap <Noel.Yap@morganstanley.com> writes:
I'd like to have a variable act as a function call. For example:
Foo& getFoo();
foo; // really calls getFoo
Is there a boost way to do this?
There's not even a C++ way to do it. If you have the luxury of assigning foo to another variable or passing it to a function, you can use implicit conversion operators to force a function call at that point. -- Dave Abrahams Boost Consulting www.boost-consulting.com