Top "Explicit" questions

In C++ specifies constructors and conversion operators that don't allow implicit conversions or copy-initialization.

Why can't a pointer be automatically converted into a unique_ptr when returning it?

Let me pose my question through an example. #include <memory> std::unique_ptr<int> get_it() { …

c++ pointers c++11 smart-pointers explicit
How can I import dll of a C++ class inside a namespace

I read some documents which gives simple examples on functions compatible with C. __declspec(dllexport) MyFunction(); I'm okey with that. …

c++ dll dllimport explicit linkage
Explicit animation of NSView using core animation

I'm trying to slide in a NSView using core animation. I think I need to use explicit animation rather than …

cocoa delegates core-animation nsview explicit
Why are function template specializations not allowed inside a class?

After having found answers to many of my questions on stackoverflow, I have now come up against a question of …

c++ class templates specialization explicit
c++ explicit keyword for function without arguments

Possible Duplicate: What does the explicit keyword in C++ mean? Is there a reason to use the explicit keyword for …

c++ explicit
@Autowired doesn't work if component-scan removed

I'm facing the problem, that the annotation @Autowired doesn't work anymore (in all Java classes that uses this annotation) if …

spring autowired explicit
Why can't I use interface with explicit operator?

I'm just wondering if anyone knows the reason why you are not allowed to use interfaces with the implicit or …

c# .net type-conversion explicit
Why is #include <string> preventing a stack overflow error here?

This is my sample code: #include <iostream> #include <string> using namespace std; class MyClass { string figName; …

c++ string stack-overflow explicit
Need explanation difference between json and dict in Python

I am just curious to understand JSON and Dict in Python more deeply. I have a JSON response from a …

python json dictionary implicit explicit