zoukankan      html  css  js  c++  java
  • Export Class and Struct

    Since Struct and Class are almost the same thing, I will just talk about one of the two.

    Let's talk about struct ba.

    There are three kinds struct:

    1. Only contain data member without functions.

    2. have only inline functions.

    3. have only function declaration in  header file.

    For 1, there is no need to export the struct, because: whether putting __declspec(dllexport) or not, in the module where to use the struct, there is no need to link its lib.

    For 3, it's a must to export the struct since the definition of member functions are in cpps.

    For 2, if export it, just the same as case 3; if not export it, the struct in the caller module will just treat the struct to be its own one since all definitions can be found in the header file.

    Need further research....Just note down to this extent... will continue...

  • 相关阅读:
    欧拉函数
    新博客地址
    socket编程
    文件操作
    python安装扩展”unable to find vcvarsall.bat“的解决办法
    PYTHON以及插件安装
    梯式结构
    PHPSTORM配置
    CSRF攻击
    js的一些奇葩用法
  • 原文地址:https://www.cnblogs.com/taoxu0903/p/1403435.html
Copyright © 2011-2022 走看看