I have been reading Conversations: Access Restrictions by Jim Hyslop and Herb Sutter in C/C++ Users Journal.
I came across this sentence:
"Please write a test harness that will time the cost of direct access, against inline accessors and non-inline accessors. Be sure that the non-inline accessors are in a separate translation unit."
What is a translation unit? In my understanding. A translation unit is like you should separate your code with other code.
Can anyone give me a clearer meaning of a translation unit?
Thanks in advance!
Rome did not create a great empire by having meetings, they did it by
killing all those who opposed them.
- janvier -