Replies: 2 comments
|
@Trinkle23897 could you help me answer the questions I've encountered? thanks a lot! |
0 replies
|
That's because of template class which we can only place it in .h iirc |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I would like to ask why, in the implementation of envpool, the definition and implementation of C++ functions are both placed in the .h file instead of being placed in the .h and .cc files respectively. Is there any particular intention behind this implementation? I'm currently facing a very thorny problem. When my
env_specbecomes complex, the compilation time becomes extremely long, and the increase in compilation time is not linearly related to the complexity of thespec. Specifically, when the number of actions/states reaches over 300, the compilation time may exceed 10 minutes. Worse still, the compilation of debug may take more than 1 hour.The following are some compilation time tests I've done:
I'm not sure if there is a relationship between the excessively long compilation time and putting both the definition and implementation in the .h file.
All reactions