Thread: logical operators on objects?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    19

    logical operators on objects?

    Hi,
    i saw this somewhere:
    Code:
    			mysqlpp::Row row;
    			mysqlpp::Result result = query.store();
    
    
    if
    (result && (result.num_rows() > 0) && (row = result.at(0)))  {
    ...
    }
    "Row" and "Result" are objects... What is the meaning of applying the AND operator on objects?

    Thanks
    Last edited by nocturna_gr; 12-19-2007 at 02:49 PM. Reason: changed "logical end" to "AND operator"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical Operators in C++
    By Flecto in forum C++ Programming
    Replies: 4
    Last Post: 05-15-2009, 07:17 AM
  2. Codeblocks and logical operators
    By fhbwghads in forum C++ Programming
    Replies: 2
    Last Post: 12-07-2008, 05:22 AM
  3. Renderable Versus Logical Objects
    By Shamino in forum Game Programming
    Replies: 5
    Last Post: 01-21-2006, 03:12 PM
  4. Relational and Logical Operators
    By GSLR in forum C Programming
    Replies: 2
    Last Post: 03-03-2002, 04:33 PM
  5. logical operators
    By sballew in forum C Programming
    Replies: 4
    Last Post: 09-04-2001, 06:24 PM