+ Reply to Thread
Results 1 to 2 of 2

Thread: What is one-definition rule in C++?

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    28

    What is one-definition rule in C++?

    What is one-definition rule in C++?

    Provide me some example.

  2. #2
    In a given translation unit, there should be no more one definition for the type, object function and so.

    Example;
    So cannot have two function with the same name and signature defined in the same source file.

    For more information:
    http://en.wikipedia.org/wiki/One_Definition_Rule

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts