User forums > Using Code::Blocks

New Folding Issue

<< < (2/5) > >>

killerbot:
well it depends, that typedef stuff comes from C.

In the C++ world you don't do that:

struct MyStruct
{
  // ...
}

and you can use the struct

just like you do with a class :

class MyClass
{
}

In C++ in neither cases you need that typedef, so it is preferred NOT to use it.

The typedefs CAN have an added value if you use STL containers, because then they can hide the actual type (for the container and it's iterators, so you can easli switch them). But as far as those iterators will be concerned in TR1 the type will be determined automatically.

Vampyre_Dark:
The code is not mine to change. I was looking through some example source files. Lots of code is written like this, wether it is right or wrong form is a matter of personal preference, and doesn't change the fact that it's an issue with the feature.

I also think like the above poster, that the last brace should be visible.

sethjackson:

--- Quote from: Vampyre_Dark on July 22, 2006, 11:36:11 pm ---The code is not mine to change. I was looking through some example source files. Lots of code is written like this, wether it is right or wrong form is a matter of personal preference, and doesn't change the fact that it's an issue with the feature.

I also think like the above poster, that the last brace should be visible.

--- End quote ---

Yup it's a bug. However I don't know how to fix. :P

Yeah I agree with PhyloGenesis. I get confused sometimes when I use the folding stuff.

Ceniza:
The AStyle plugin has nothing to do with folding... or did I miss something? :?

sethjackson:

--- Quote from: Ceniza on July 23, 2006, 02:48:24 am ---The AStyle plugin has nothing to do with folding... or did I miss something? :?

--- End quote ---

Why did I say that.  :oops:  :P

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version