bug-commoncpp
[Top][All Lists]
Advanced

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

[Bug #3290] const's Missing, v2 1.0.9, class Datetime


From: nobody
Subject: [Bug #3290] const's Missing, v2 1.0.9, class Datetime
Date: Sun, 11 May 2003 08:34:33 -0400

=================== BUG #3290: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3290&group_id=89

Changes by: Federico Montesino Pouzols <address@hidden>
Date: Sun 05/11/2003 at 14:34 (Europe/Madrid)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
         Assigned to | None                      | fedemp
              Status | Open                      | Closed
                  CC |                           | address@hidden


------------------ Additional Follow-up Comments ----------------------------

Fixed in CVS.



=================== BUG #3290: FULL BUG SNAPSHOT ===================


Submitted by: drzoom                  Project: commonc++                    
Submitted on: Mon 04/21/2003 at 14:46
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  fedemp                  Status:  Closed                       

Summary:  const's Missing, v2 1.0.9, class Datetime

Original Submission:  All constant functions should be declaed as "const".

class Foo {
        protected:
                Datetime datetime;
        public:
                const Datetime& getDatetime() const
                {
                        return datetime;
                }
}

main()
{
        Foo foo;
        
        // ERROR: because the missing const declarations...
        cout << foo.getDatetime().strftime( "%T" ) << endl;
}


Follow-up Comments
*******************

-------------------------------------------------------
Date: Sun 05/11/2003 at 14:34       By: fedemp

Fixed in CVS.


CC List
*******

CC Address                          | Comment
------------------------------------+-----------------------------
address@hidden               | 



No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3290&group_id=89




reply via email to

[Prev in Thread] Current Thread [Next in Thread]