With this implementation, you get neat compile time error messages.
如果使用此实现,您会得到相应的编译时错误消息。
A failed conversion here will result in a compile time error.
在这里失败的转换会导致编译时期错误。
Comparing tuples of unequal lengths results in a compile-time error.
比较不同长度的元组会产生编译时错误。
Listing 2 shows a piece of code that results in a compile-time error because the copy constructor is private.
清单2显示了产生编译时错误的代码部分,因为该拷贝构造函数是私有的。
This incompatibility between platforms is particularly dangerous as it might cause programs to return wrong results rather than causing a compile-time error.
不同平台之间的不兼容性尤其危险,因为它可能会导致程序返回错误结果,而不是编译时错误。
Using any of the other three forms of cast in this case would result in a compile-time error.
在这种情况下,试图使用其他三种形式的强制转换都会导致编译时的错误。
If there is no default constructor, then there is a compile-time error: the object must be given an explicit initializer.
如果没有默认构造函数,那么将会出现编译时错误:必须要给对象指定显式的初始化式。
If client code tries to instantiate your class by using a type that is not allowed by a constraint, the result is a compile-time error.
如果客户端代码尝试使用某个约束所不允许的类型来实例化类,则会产生编译时错误。
In fast mode, a compile-time error will be generated if you attempt to assign a value to a read-only identifier.
在快速模式中,如果尝试为只读标识符赋值,将生成编译时错误。
So if you misspelled "secret" in the above example, or tried to call a method on it that did not exist, you would get a compile-time error.
因此如果在上例中拼错了“secret”,或尝试调用根本不存在的方法,那么将出现编译时错误。
So if you misspelled "secret" in the above example, or tried to call a method on it that did not exist, you would get a compile-time error.
因此如果在上例中拼错了“secret”,或尝试调用根本不存在的方法,那么将出现编译时错误。
应用推荐