top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Explain one-definition rule (ODR)?

+1 vote
Explain one-definition rule (ODR)?
posted Dec 2, 2014 by Roshan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

According to one-definition rule, C++ constructs must be identically defined in every compilation unit they are used in.

As per ODR, two definitions contained in different source files are called to be identically defined if they token-for-token identical. The tokens should have same meaning in both source files.

Identically defined doesn’t mean character-by-character equivalence. Two definitions can have different whitespace or comments and yet be identical.

answer Dec 2, 2014 by Shivaranjini
Similar Questions
+2 votes

What is The Rule of Three in C++? Please answer the following questions also -

  1. What does copying an object mean?
  2. What are the copy constructor and the copy assignment operator? When do I need to declare them myself?
  3. How can I prevent my objects from being copied?
+3 votes

In the CCA message sent by the PCRF to PGW during the Initial Attach, may have "Charging-Rule-Base-Name" Or "Charging-rule-Name". I think "Charging-rule-Name" is sent as part of the Charging-Rule-Install , where the Rule is sent from the PCRF to PGW. "Charging-Rule-Base-Name" is sent as part of the preinstalled rules in the PGW.

Now the question is if the PCRF is getting integrated to thirdparty PGW. In this case how PCRF knows about the names installed in the PGW ?

thanks a lot for the responses and hints

+2 votes

There are three popular algorithms of Association Rule Mining, Apriori (based on candidate generation), FP-Growth (based on without candidate generation) and Eclat (based on lattice traversal). Which one is best in order to easy to use, and implement? Also why should I choose Apriori over other?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.