Questions tagged [explicit]

In C++ specifies constructors and conversion operators that don't allow implicit conversions or copy-initialization. In C# declares a user-defined type conversion operator that must be invoked with a cast. For MS SQL Server for-xml-EXPLICIT mode use the [for-xml-explicit] tag

405 questions
0
votes
1 answer

C2664: Explicit cast operator do not cast as expected

My test class XString has two cast operators. But the compiler do not use the explicit cast operator const wchar_t*() for fooA. Why? class XString { public: operator const CString&(); explicit operator const wchar_t*(); }; void fooA(const…
0
votes
1 answer

MATLAB want to convert explicit euler algorithm to implicit euler algorithm for SYSTEM of 1st order ODEs

Before anything, I can't use ANY built-in ODE solvers for this. I coded this system of ODEs with explicit euler's method but I need to instead rewrite it with implicit euler's. If I just switch the "i" to "i+1" (ex "y(1,i)" to "y(1,i+1)") then the…
Dcg
  • 1
0
votes
1 answer

Google Vision API java client: how to set API credentials explicitly in code(without using environment variable)

I'm trying to integrate my project with Google Vision API Here is the maven dependency for you to check the client version I'm trying to integrate with: com.google.cloud
0
votes
0 answers

Red Hat Linux curl command using explicit TLS

I am in a Red Hat Linux 7.1 environment. I am trying to write a curl command that uses explicit tls encryption to send a file or a goup of files to the 'target' server. I understand Filezilla can do this however I don't want to use Filezilla. Here…
ajtorre27
  • 1
  • 1
0
votes
0 answers

Python Selenium Explicit Wait + Expected Conditions Not Working

I am scraping a website for data from a table, which is loaded via AJAX. The website is slow, and inconsistent, so sometimes I have to wait <5 sec for the table to load, while other times I have to wait 25 - 30. I am iterating through hundreds of…
0
votes
3 answers

C# + Selenium: automation wait

The below code is not working and it always throws No such element exception at line 2. wait.IgnoreExceptionTypes(typeof(NoSuchElementException)); wait.Until(ExpectedConditions.ElementToBeClickable(By.XPath(element)));
vignesh
  • 1
  • 1
0
votes
1 answer

Overloading explicit constructor in C++

I am reading a book and got some code for class designing that I do not really understand. class Queue { public: Queue(size_t capacity) {} explicit Queue(int capacity) : entries_(capacity) {} ... private: vector
Sean
  • 2,649
  • 3
  • 21
  • 27
0
votes
1 answer

explicit keyword

Possible Duplicate: What does the explicit keyword in C++ mean? what does the keyword explicit mean?
lital maatuk
  • 5,921
  • 20
  • 57
  • 79
0
votes
0 answers

Can there be such a thing as forward in time (explicit scheme) and forward in space as well (downwind) for any transport equation?

I have come across a lot of cases of FTCS (forward in time and centered in space) for any type of advection and/or diffusion equations. Now, I know this is a silly question. I apologize, but I really don't know the answer to this!!! Is there any way…
MousumiG
  • 41
  • 2
  • 9
0
votes
1 answer

explicit qualification in declaration of 'std::cout'

The problem is really strange for me. The code is as simple as possible: #include using namespace std; int main() { cout << "Hello World!" << endl; return 0; } It is just helloworld as it is created from standart cpp project. I…
Alexander Lyapin
  • 305
  • 1
  • 14
0
votes
0 answers

Xceed themes override all other styles

I'm using an xceed datagrid with the Office2007BlackTheme. I also have a lot of styles, that I want to apply to UI controls inside my datagrid. Unfortunately the theme seems to override everything as long as its inside the datagrid. It is worth…
Hjalte Tagmose
  • 67
  • 1
  • 12
0
votes
0 answers

Is there a generic way for initializing static members of template classes of dlls?

I am stuck with the following problem: I want to determine at run-time how many instances of a specific object family (i.e. objects with the same base class) exist. My current approach is to use a template class with a static int value as counter.…
Tobs
  • 27
  • 3
0
votes
1 answer

Explicit specialization - template-id does not match any template declaration

I have a problem regarding explicit specialization in C++ program I want to make a specialization for char* type that returns an address to the longest char array but i keep getting errors : C:\Users\Olek\C++\8_1\main.cpp|6|error: template-id…
IceKoldCilla
  • 33
  • 1
  • 5
0
votes
1 answer

My C++ template failed: explicit specialization of non-template struct

I'm using clang on mac and having: $cat my.cpp #include using namespace std; template struct place_holder{}; place_holder<1> _1; place_holder<2> _2; template struct is_placeholder:public…
Hind Forsum
  • 9,717
  • 13
  • 63
  • 119
0
votes
1 answer

Add CSS gradient with javascript - bug in IE7

I am trying to add gradient on only .link.box.gradient but in ie7 it add on .link.box.gradient and .style.box.gradient
Codler
  • 10,951
  • 6
  • 52
  • 65