search for: constless

Displaying 2 results from an estimated 2 matches for "constless".

Did you mean: consoles
2012 Feb 16
2
[LLVMdev] Question about "const"
Hi all. I have a next problem. I need to implement some object that will work with both const and "constless" object: Instruction* and const Instruction*, for example. How to implement it better? Currently I see two possible ways: 1. Templates. template <class InstructionTy> class InstructionProcessorT { InstructionTy *Inst; InstructionProcessor(InstructionTy *I) : Inst(I) {} // }; typed...
2012 Feb 16
0
[LLVMdev] Question about "const"
...at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Stepan Dyatkovskiy Sent: 16 February 2012 06:36 To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] Question about "const" Hi all. I have a next problem. I need to implement some object that will work with both const and "constless" object: Instruction* and const Instruction*, for example. How to implement it better? Currently I see two possible ways: 1. Templates. template <class InstructionTy> class InstructionProcessorT { InstructionTy *Inst; InstructionProcessor(InstructionTy *I) : Inst(I) {} // }; typed...