Questions tagged [unspecified]

21 questions
5
votes
6 answers

Undefined/Unspecified/Implementation-defined behaviour warnings?

Can't a compiler warn (even better if it throws errors) when it notices a statement with undefined/unspecified/implementation-defined behaviour? Probably to flag a statement as error, the standard should say so, but it can warn the coder at least.…
legends2k
  • 31,634
  • 25
  • 118
  • 222
5
votes
3 answers

Pass a parent class as an argument?

Is it possible to leave a parent class unspecified until an instance is created? e.g. something like this: class SomeParentClass: # something class Child(unspecifiedParentClass): # something instance = Child(SomeParentClass) This…
Thrasi
  • 418
  • 1
  • 5
  • 15
4
votes
3 answers

Function call in wrong order

This is what i have coded today #include using namespace std; int function1() { cout<<"hello from function1()"; return 0; } int function2() { cout<<"hello from function2()"; return 0; } int main() { int func_diffresult = 0; …
Raghvan
  • 41
  • 1
4
votes
1 answer

Keep getting run-time error VBA

I am trying to get this to log into my website with a main login page and a second One Time Password(OTP) page. But i am getting and error run-time error '-2147467259 (80004005)': Automation error Unspecified error found at this line: If…
2
votes
3 answers

Why is undefined behavior allowed (as opposed to not compiling/crashing)?

I understand the reasons for compiler/interpreter language extensions but why is behaviour that has no valid definition allowed to fail silently/do weird things rather then throwing a compiler error? Is it because of the extra difficulty(impossible…
2
votes
1 answer

Mediaelements.js Unspecified error

Im using mediaelements.js on a wordpress site with an MP4 video. In IE9/Firefox/Chrome it works fine. But in IE 7/8 when clicking on play u get the following error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT…
gvperkins
  • 168
  • 2
  • 9
1
vote
3 answers

unspecified bind

I was researching what std::bind is and what it's for (that may eventually be a different question) at MSDN: http://msdn.microsoft.com/en-us/library/bb982702.aspx And saw that the prototypes listed are: template
Mooing Duck
  • 64,318
  • 19
  • 100
  • 158
1
vote
1 answer

TwinCAT project build fails with unspecified error

My TwinCAT PLC project was working fine, but suddenly one day it could not build at all. The error message is simply "The operation could not be completed. Unspecified error". I also noticed that all my local files, such function block files, would…
Girl Spider
  • 330
  • 2
  • 6
1
vote
1 answer

Confusion about [expr.static.cast]/13

I can't understand the quote (specifically, the bold part): A prvalue of type “pointer to cv1 void” can be converted to a prvalue of type “pointer to cv2 T”, where T is an object type and cv2 is the same cv-qualification as, or greater…
user15676138
1
vote
1 answer

Visual Studio 2015 enterprise unknown issue

I'm trying to start a new MVC project but I constantly get this message: Unspecified error (Exception from HRESULT: 0X80004005 (E_FAIL)) I have tried almost every thing that I could find on internet and still no luck. My setup: i3 - 250gb ssd - 8gb…
H35am
  • 768
  • 2
  • 12
  • 32
1
vote
1 answer

Can there be python functions that take unspecified number of arguments?

Can there be python functions that take unspecified number of arguments such as myfunc(a, b, c) myfunc(a, b, c, d, e) where both will work?
alwbtc
  • 28,057
  • 62
  • 134
  • 188
0
votes
1 answer

model = YourModelClass(input_size, hidden_size, num_layers, output_size) NameError: name 'input_size' is not defined

import torch import torch.nn as nn import torch.optim as optim answer = input() class YourModelClass(nn.Module): def __init__(self, input_size, hidden_size, num_layers, output_size): super().__init__() self.lstm =…
0
votes
0 answers

Unspecified field types

What is the code for “any unspecified field type is text” in sql? I’ve tried using replace and I’ve searched multiple sites but I haven’t found a solution
0
votes
1 answer

"Unspecified Exception" when running .command bash script

I've created a bash script to play some music using the afplay command. I used the file extension .command so that it can be opened with a double click in finder. This is an abbreviation of the code. #! /bin/bash afplay playlist/01.m4a The script…
0
votes
1 answer

OpenCV Unspecified error when calling Hough transform in c++

I'm working on a music recognition Android app, which should recognize music annotations in sheet in real time using camera. When I try to recognize lines or circles using Hough transform (either HoughCircles or HoughLinesP), I get the Unspecified…
1
2