我有一个使用最新版本的WebStorm 2020.3.1的项目。我有多个tsconfig.json文件,但我只需要通过 WebStorm 自动重新编译其中一个。我已经按照附件配置了。
奇怪的是跑步tsc -p ./tsconfig-electron.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) 我有一堆重载函数来处理特定的 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)