小编t34*_*575的帖子

WebStorm 未加载特定的 tsconfig.json

我有一个使用最新版本的WebStorm 2020.3.1的项目。我有多个tsconfig.json文件,但我只需要通过 WebStorm 自动重新编译其中一个。我已经按照附件配置了。

奇怪的是跑步tsc -p ./tsconfig-electron.json效果很好。

这里有什么问题呢?

WebStorm TypeScript 编译

tsconfig-电子.json:

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es6",
        "sourceMap": true,
        "outDir": "electron-dist",
        "rootDir": "electron-src",
        "removeComments": true,
        "strict": true
    },
    "exclude": [
        "node_modules",
        "dist",
        "src",
        "e2e"
    ],
    "declaration": true
}
Run Code Online (Sandbox Code Playgroud)

webstorm typescript

3
推荐指数
1
解决办法
3031
查看次数

C++ 函数重载 char 而不是 double

我有一堆重载函数来处理特定的 int 大小、float、double、char 和 std::string。

例如:

#include <cstdint>
#include <iostream>
void some_func(uint8_t& src) {
    std::cout << "inside uint8_t" << std::endl;
}
void some_func(uint16_t& src) {
    std::cout << "inside uint16_t" << std::endl;
}
void some_func(uint32_t& src) {
    std::cout << "inside uint32_t" << std::endl;
}
void some_func(uint64_t& src) {
    std::cout << "inside uint64_t" << std::endl;
}
void some_func(bool& src) {
    std::cout << "inside bool" << std::endl;
}
void some_func(double& src) {
    std::cout << "inside double" << std::endl;
}
void some_func(float& src) { …
Run Code Online (Sandbox Code Playgroud)

c++ c++17

1
推荐指数
1
解决办法
55
查看次数

标签 统计

c++ ×1

c++17 ×1

typescript ×1

webstorm ×1