3,645 questions
Score of 0
2 answers
120 views
How to wrap a concrete subclass within the abstract/final design pattern
I'm using the equinox library for a project, written in python.
This library is used to define dataclasses and strongly recommends to use the abstract/final pattern when designing these classes.
I ...
Score of 4
1 answer
287 views
Is Swig able to wrap nested structs when wrapping to produce python code?
The question is in the title. I try to wrap c++ code to python, which has nested structs (struct definitions inside another struct definition), and the inner struct doesn't appear in my python module (...
Score of 4
1 answer
125 views
Error using ternary operator and method overloading of wrapper class in Java 8 only
I am using Java 8 and facing some weird error.
The compiler gives the following error:
error: reference to [method] is ambiguous
Here's my code
StringBuilder sb = new StringBuilder();
Stack<...
Score of -2
4 answers
143 views
Javascript wait-until-then wrapper function
There are already a few javascript wait until questions on stackoverflow.
But none of them address a wrapper function.
Could anyone provide wait until functionality and then wrap it in a function like:...
Score of -1
1 answer
757 views
How to Access Nested Wrapper Class in Flow Apex Action?
I'm working on an Apex Invocable Method that returns a wrapper class with nested wrapper objects. However, in Flow, I'm unable to access the inner wrapper fields properly.
Here’s a simplified version ...
Score of 1
1 answer
92 views
Override property from wrapper class
I have a class A with a property prop and a method method that uses this property:
class A:
@property
def prop(self) -> int:
return 1
def method(self) -> int:
return ...
Score of 0
1 answer
135 views
sending shell script arguments to C wrapper
I am trying to wrap a shell script so that it may be called from a Windows program inside Cygwin. Following up on a previous question, I thought it was enough to pass the arguments of the script to ...
Score of 1
1 answer
208 views
How to make callbacks from C code to Tcl that returns data to C
I faced with the issue - I have C code of optimization library, and it accepts pointer to function as one of the argument. So, previously I used SWIG to generate Tcl wrapper of for C functions, but in ...
Score of 0
1 answer
98 views
C++/CLI Several Memory error on cpp header file wrapper
I'm trying to create a C++/CLI wrapper of a cpp header file.
I have only access to the header files and to the .lib files.
This is the original IRCalibrationManager.h file that I'm trying to wrap:
#...
Score of 2
1 answer
460 views
Is there any easy way to Integrate angular component into react [closed]
Is there any easy way to Integrate angular component into react without using react-ang?
Focusing on performance.
Used react-ang, which allows you to use Angular components in React.
Used the Wrapper ...
Score of 1
0 answers
89 views
Blazor Server SignalR HubConnection wrapper doesn't SendAsync to Hub function
I was using HubConnection in my component in order to user real-time fucntionnality. But I would like to test my component so then I wrapper my HubConnection like this:
public class ...
Score of 1
1 answer
49 views
Allow current location access via my React Native App
I have react native app that displays a responsive website. We have a wrapper built around the app to display this responsive website.
Now the problem is that in the website we have enabled current ...
Score of 1
2 answers
171 views
wrapping ctypes.Structure inside a class
I want to be able to pass a structure to some c-code and am using ctypes.structure. I have a simple working example that takes an input array and squares the elements and outputs as an array. However, ...
Score of 1
1 answer
200 views
Issue with overriding glibc malloc using --wrap option in statically linked application after glibc upgrade
After upgrading to the latest glibc, I noticed that malloc_hooks is deprecated, so I am trying to override certain glibc functions with user-defined ones using the --wrap symbol. For instance, I'm ...
Score of 2
1 answer
195 views
std::print() wrapper with altered format
I try to create a std::print() wrapper with a modified format (e.g. add something before and after the original format).
I can achieve this using a macro:
#define DECORATED_PRINT(fmt, ...) std::...