我在Visual Studio 2013和预编译库的Windows上使用Boost 1.62.0。
我有这个示例代码:
"C:\Temp\test\in" -o "C:\Temp\test\out"
我正在使用此命令行在VS中运行它:
0->C:\MyData\TestCodes\testBoostProgramOption\build\Debug\test.exe
1->C:\Temp\test\in
2->-o
3->C:\Temp\test\in
应用程序打印这个:
option '--input-path' cannot be specified more than once
这似乎是正确的,但我收到了这个错误:
{
$and: [
{_id: {$ne: "SOME_ID"}},
{_id: {$nin: ["ID1","ID2","ID3"]}},
{_id: {$nin: ["ID4","ID5","ID6"]}}
],
age: {$gte: 18, $lte: 50},
gender: "male",
location: {
$nearSphere: {
$geometry: {
type: "Point",
coordinates: ["some_valid_longitude", "some_valid_latitude"]
},
$maxDistance: 1000
}
},
work: "work",
registrationComplete: true
}
代码或程序选项有什么问题?